diff options
author | phk <phk@FreeBSD.org> | 2005-09-24 07:03:09 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-09-24 07:03:09 +0000 |
commit | a951e327e625708d60d649c19b21d217d9325f91 (patch) | |
tree | d0b4460b68d3350b91dc217d61ac6168b4077b02 /sys/fs/devfs/devfs.h | |
parent | 07adfc3d98d69f8a0bc6828588bde6785f3d08b4 (diff) | |
download | FreeBSD-src-a951e327e625708d60d649c19b21d217d9325f91.zip FreeBSD-src-a951e327e625708d60d649c19b21d217d9325f91.tar.gz |
Make rule zero really magical, that way we don't have to do anything
when we mount and get zero cost if no rules are used in a mountpoint.
Add code to deref rules on unmount.
Switch from SLIST to TAILQ.
Drop SYSINIT, use SX_SYSINIT and static initializer of TAILQ instead.
Drop goto, a break will do.
Reduce double pointers to single pointers.
Combine reaping and destroying rulesets.
Avoid memory leaks in a some error cases.
Diffstat (limited to 'sys/fs/devfs/devfs.h')
-rw-r--r-- | sys/fs/devfs/devfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/devfs/devfs.h b/sys/fs/devfs/devfs.h index 18061b9..37136be0 100644 --- a/sys/fs/devfs/devfs.h +++ b/sys/fs/devfs/devfs.h @@ -161,8 +161,8 @@ extern unsigned devfs_rule_depth; #define VFSTODEVFS(mp) ((struct devfs_mount *)((mp)->mnt_data)) void devfs_rules_apply(struct devfs_mount *dm, struct devfs_dirent *de); +void devfs_rules_cleanup (struct devfs_mount *dm); int devfs_rules_ioctl(struct devfs_mount *dm, u_long cmd, caddr_t data, struct thread *td); -void devfs_rules_newmount(struct devfs_mount *dm, struct thread *td); int devfs_allocv (struct devfs_dirent *de, struct mount *mp, struct vnode **vpp, struct thread *td); struct cdev **devfs_itod (int inode); struct devfs_dirent **devfs_itode (struct devfs_mount *dm, int inode); |