]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - include/sys/sunldi.h
OK, a first reasonable attempt at a solaris module/chdev shim layer.
[FreeBSD/FreeBSD.git] / include / sys / sunldi.h
1 #ifndef _SPL_SUNLDI_H
2 #define _SPL_SUNLDI_H
3
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);
27
28 #endif /* SPL_SUNLDI_H */