Add missing callback_context_t and fid_t types

This commit is contained in:
Brian Behlendorf 2009-01-09 10:03:37 -08:00
parent 703e7a3cf4
commit 23f5c4c281
2 changed files with 68 additions and 49 deletions

View File

@ -5,4 +5,16 @@ typedef struct vfs {
int foo;
} vfs_t;
#define MAXFIDSZ 64
typedef struct fid {
union {
long fid_pad;
struct {
ushort_t len; /* length of data in bytes */
char data[MAXFIDSZ];/* data (variable len) */
} _fid;
} un;
} fid_t;
#endif /* SPL_ZFS_H */

View File

@ -187,9 +187,16 @@ typedef struct vn_file {
kmutex_t f_lock; /* struct lock */
loff_t f_offset; /* offset */
vnode_t *f_vnode; /* vnode */
struct list_head f_list; /* list of referenced file_t's */
struct list_head f_list /* list referenced file_t's */
} file_t;
typedef struct caller_context {
pid_t cc_pid; /* Process ID of the caller */
int cc_sysid; /* System ID, used for remote calls */
u_longlong_t cc_caller_id; /* Identifier for (set of) caller(s) */
ulong_t cc_flags;
} caller_context_t;
extern vnode_t *vn_alloc(int flag);
void vn_free(vnode_t *vp);
extern int vn_open(const char *path, uio_seg_t seg, int flags, int mode,