]>
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
;
19 typedef int64_t ino64_t
;
23 typedef struct buf
* buf_t
;
26 typedef struct file
* file_t
;
29 typedef struct ucred
* ucred_t
;
32 typedef struct mount
* mount_t
;
35 typedef struct fsid
{ int32_t val
[2]; } fsid_t
; /* file system id type */
39 typedef struct vnode
* vnode_t
;
42 typedef struct proc
* proc_t
;
45 typedef struct uio
* uio_t
;
48 typedef struct vfs_context
* vfs_context_t
;
51 typedef struct vfstable
* vfstable_t
;
60 struct __ifnet_filter
;
63 typedef struct __ifnet
* ifnet_t
;
64 typedef struct __mbuf
* mbuf_t
;
65 typedef struct __pkthdr
* pkthdr_t
;
66 typedef struct __socket
* socket_t
;
67 typedef struct __sockopt
* sockopt_t
;
68 typedef struct __ifaddr
* ifaddr_t
;
69 typedef struct __ifmultiaddr
* ifmultiaddr_t
;
70 typedef struct __ifnet_filter
* interface_filter_t
;
71 typedef struct __rtentry
* route_t
;
75 typedef struct buf
* buf_t
;
76 typedef struct file
* file_t
;
77 typedef struct ucred
* ucred_t
;
78 typedef struct mount
* mount_t
;
79 typedef struct vnode
* vnode_t
;
80 typedef struct proc
* proc_t
;
81 typedef struct uio
* uio_t
;
82 typedef struct user_iovec
* user_iovec_t
;
83 typedef struct vfs_context
* vfs_context_t
;
84 typedef struct vfstable
* vfstable_t
;
87 typedef struct kern_iovec
* kern_iovec_t
;
88 typedef struct ifnet
* ifnet_t
;
89 typedef struct mbuf
* mbuf_t
;
90 typedef struct pkthdr
* pkthdr_t
;
91 typedef struct socket
* socket_t
;
92 typedef struct sockopt
* sockopt_t
;
93 typedef struct ifaddr
* ifaddr_t
;
94 typedef struct ifmultiaddr
* ifmultiaddr_t
;
95 typedef struct ifnet_filter
* interface_filter_t
;
96 typedef struct rtentry
* route_t
;
97 #endif /* KERNEL_PRIVATE */
99 #endif /* !BSD_BUILD */
103 /* Apple-style globally unique identifier */
105 #define KAUTH_GUID_SIZE 16 /* 128-bit identifier */
106 unsigned char g_guid
[KAUTH_GUID_SIZE
];
109 #endif /* _KAUTH_GUID */
114 typedef struct kauth_ace
* kauth_ace_t
;
119 typedef struct kauth_acl
* kauth_acl_t
;
121 #ifndef _KAUTH_FILESEC
122 #define _KAUTH_FILESEC
123 struct kauth_filesec
;
124 typedef struct kauth_filesec
* kauth_filesec_t
;
127 #endif /* !_KERN_SYS_KERNELTYPES_H_ */