]> git.proxmox.com Git - mirror_zfs.git/blame - include/sys/sunldi.h
Apparently it's OK for done to be NULL, which was not clear in the
[mirror_zfs.git] / include / sys / sunldi.h
CommitLineData
ea19fbed
BB
1#ifndef _SPL_SUNLDI_H
2#define _SPL_SUNLDI_H
3
4e62fd41
BB
4#include <sys/types.h>
5
6typedef struct modlinkage {
7 int ml_rev;
8 struct modlfs *ml_modlfs;
9 struct modldrv *ml_modldrv;
10 major_t ml_major;
11 unsigned ml_minors;
12 void *pad1;
13} modlinkage_t;
14
15typedef struct ldi_ident {
16 char li_modname[MAXNAMELEN];
17 dev_t li_dev;
18} *ldi_ident_t;
19
20typedef struct ldi_handle {
21 uint_t lh_type;
22 struct ldi_ident *lh_ident;
23} ldi_handle_t;
24
25extern int ldi_ident_from_mod(struct modlinkage *modlp, ldi_ident_t *lip);
26extern void ldi_ident_release(ldi_ident_t li);
ea19fbed
BB
27
28#endif /* SPL_SUNLDI_H */