]>
Commit | Line | Data |
---|---|---|
ea19fbed BB |
1 | #ifndef _SPL_SUNLDI_H |
2 | #define _SPL_SUNLDI_H | |
3 | ||
4e62fd41 BB |
4 | #include <sys/types.h> |
5 | ||
6 | typedef 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 | ||
15 | typedef struct ldi_ident { | |
16 | char li_modname[MAXNAMELEN]; | |
17 | dev_t li_dev; | |
18 | } *ldi_ident_t; | |
19 | ||
20 | typedef struct ldi_handle { | |
21 | uint_t lh_type; | |
22 | struct ldi_ident *lh_ident; | |
23 | } ldi_handle_t; | |
24 | ||
25 | extern int ldi_ident_from_mod(struct modlinkage *modlp, ldi_ident_t *lip); | |
26 | extern void ldi_ident_release(ldi_ident_t li); | |
ea19fbed BB |
27 | |
28 | #endif /* SPL_SUNLDI_H */ |