]>
git.saurik.com Git - apple/xnu.git/blob - bsd/sys/kernel_types.h
1 #ifndef _KERN_SYS_KERNELTYPES_H_
2 #define _KERN_SYS_KERNELTYPES_H_
9 /* Macros(?) to clear/set/test flags. */
10 #define SET(t, f) (t) |= (f)
11 #define CLR(t, f) (t) &= ~(f)
12 #define ISSET(t, f) ((t) & (f))
17 typedef int64_t daddr64_t
;
21 typedef struct buf
* buf_t
;
24 typedef struct file
* file_t
;
28 typedef struct ucred
* ucred_t
;
32 typedef struct mount
* mount_t
;
35 typedef struct vnode
* vnode_t
;
38 typedef struct proc
* proc_t
;
41 typedef struct uio
* uio_t
;
44 typedef struct vfs_context
* vfs_context_t
;
47 typedef struct vfstable
* vfstable_t
;
56 struct __ifnet_filter
;
59 typedef struct __ifnet
* ifnet_t
;
60 typedef struct __mbuf
* mbuf_t
;
61 typedef struct __pkthdr
* pkthdr_t
;
62 typedef struct __socket
* socket_t
;
63 typedef struct __sockopt
* sockopt_t
;
64 typedef struct __ifaddr
* ifaddr_t
;
65 typedef struct __ifmultiaddr
* ifmultiaddr_t
;
66 typedef struct __ifnet_filter
* interface_filter_t
;
67 typedef struct __rtentry
* route_t
;
71 typedef struct buf
* buf_t
;
72 typedef struct file
* file_t
;
74 typedef struct ucred
* ucred_t
;
76 typedef struct mount
* mount_t
;
77 typedef struct vnode
* vnode_t
;
78 typedef struct proc
* proc_t
;
79 typedef struct uio
* uio_t
;
80 typedef struct user_iovec
* user_iovec_t
;
81 typedef struct vfs_context
* vfs_context_t
;
82 typedef struct vfstable
* vfstable_t
;
85 typedef struct kern_iovec
* kern_iovec_t
;
86 typedef struct ifnet
* ifnet_t
;
87 typedef struct mbuf
* mbuf_t
;
88 typedef struct pkthdr
* pkthdr_t
;
89 typedef struct socket
* socket_t
;
90 typedef struct sockopt
* sockopt_t
;
91 typedef struct ifaddr
* ifaddr_t
;
92 typedef struct ifmultiaddr
* ifmultiaddr_t
;
93 typedef struct ifnet_filter
* interface_filter_t
;
94 typedef struct rtentry
* route_t
;
95 #endif /* KERNEL_PRIVATE */
97 #endif /* !BSD_BUILD */
101 /* Apple-style globally unique identifier */
103 #define KAUTH_GUID_SIZE 16 /* 128-bit identifier */
104 unsigned char g_guid
[KAUTH_GUID_SIZE
];
107 #endif /* _KAUTH_GUID */
112 typedef struct kauth_ace
* kauth_ace_t
;
117 typedef struct kauth_acl
* kauth_acl_t
;
119 #ifndef _KAUTH_FILESEC
120 #define _KAUTH_FILESEC
121 struct kauth_filesec
;
122 typedef struct kauth_filesec
* kauth_filesec_t
;
125 #endif /* !_KERN_SYS_KERNELTYPES_H_ */