diff options
author | brooks <brooks@FreeBSD.org> | 2004-09-01 01:19:52 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2004-09-01 01:19:52 +0000 |
commit | eeddbfb0fa1e4bef7bff6ff83926b674f7d9e29c (patch) | |
tree | cc3bec9ba8ac27b526dbb740b61a62d861efbeb0 /sys/fs/coda/cnode.h | |
parent | 77972e1ec2ccf47109756cd13b82696e5a5696b3 (diff) | |
download | FreeBSD-src-eeddbfb0fa1e4bef7bff6ff83926b674f7d9e29c.zip FreeBSD-src-eeddbfb0fa1e4bef7bff6ff83926b674f7d9e29c.tar.gz |
General modernization of coda:
- Ditch NVCODA
- Don't use a static major
- Don't declare functions extern
Reviewed by: peter
Diffstat (limited to 'sys/fs/coda/cnode.h')
-rw-r--r-- | sys/fs/coda/cnode.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/sys/fs/coda/cnode.h b/sys/fs/coda/cnode.h index be7e848..2a9cf0b 100644 --- a/sys/fs/coda/cnode.h +++ b/sys/fs/coda/cnode.h @@ -109,7 +109,7 @@ struct cnode { struct vattr c_vattr; /* attributes */ char *c_symlink; /* pointer to symbolic link */ u_short c_symlen; /* length of symbolic link */ - struct cdev *c_device; /* associated vnode device */ + struct cdev *c_device; /* associated vnode device */ ino_t c_inode; /* associated vnode inode */ struct cnode *c_next; /* links if on NetBSD machine */ }; @@ -153,10 +153,11 @@ struct coda_mntinfo { struct vnode *mi_rootvp; struct mount *mi_vfsp; struct vcomm mi_vcomm; - struct cdev *dev; + struct cdev *dev; int mi_started; + LIST_ENTRY(coda_mntinfo) mi_list; }; -extern struct coda_mntinfo coda_mnttbl[]; /* indexed by minor device number */ +struct coda_mntinfo *dev2coda_mntinfo(struct cdev *dev); /* * vfs pointer to mount info @@ -188,20 +189,20 @@ enum dc_status { }; /* cfs_psdev.h */ -extern int coda_call(struct coda_mntinfo *mntinfo, int inSize, int *outSize, caddr_t buffer); +int coda_call(struct coda_mntinfo *mntinfo, int inSize, int *outSize, caddr_t buffer); extern int coda_kernel_version; /* cfs_subr.h */ -extern int handleDownCall(int opcode, union outputArgs *out); -extern void coda_unmounting(struct mount *whoIam); -extern int coda_vmflush(struct cnode *cp); +int handleDownCall(int opcode, union outputArgs *out); +void coda_unmounting(struct mount *whoIam); +int coda_vmflush(struct cnode *cp); /* cfs_vnodeops.h */ -extern struct cnode *make_coda_node(CodaFid *fid, struct mount *vfsp, short type); -extern int coda_vnodeopstats_init(void); +struct cnode *make_coda_node(CodaFid *fid, struct mount *vfsp, short type); +int coda_vnodeopstats_init(void); /* coda_vfsops.h */ -extern struct mount *devtomp(struct cdev *dev); +struct mount *devtomp(struct cdev *dev); /* sigh */ #define CODA_RDWR ((u_long) 31) |