Move the vop-vector declaration into devfs_vnops.c where it belongs.
This commit is contained in:
parent
914ded8346
commit
7491f6314f
@ -186,9 +186,6 @@ struct devfs_mount {
|
||||
|
||||
#define VFSTODEVFS(mp) ((struct devfs_mount *)((mp)->mnt_data))
|
||||
|
||||
extern vop_t **devfs_vnodeop_p;
|
||||
extern vop_t **devfs_specop_p;
|
||||
|
||||
void devfs_rules_apply(struct devfs_mount *dm, struct devfs_dirent *de);
|
||||
void devfs_rules_init(void);
|
||||
int devfs_rules_ioctl(struct mount *mp, int cmd, caddr_t data, struct thread *td);
|
||||
|
@ -83,6 +83,9 @@ static int devfs_setlabel(struct vop_setlabel_args *ap);
|
||||
#endif
|
||||
static int devfs_symlink(struct vop_symlink_args *ap);
|
||||
|
||||
static vop_t **devfs_vnodeop_p;
|
||||
static vop_t **devfs_specop_p;
|
||||
|
||||
/*
|
||||
* Construct the fully qualified path name relative to the mountpoint
|
||||
*/
|
||||
@ -875,7 +878,6 @@ devfs_symlink(ap)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static vop_t **devfs_vnodeop_p;
|
||||
static struct vnodeopv_entry_desc devfs_vnodeop_entries[] = {
|
||||
{ &vop_default_desc, (vop_t *) vop_defaultop },
|
||||
{ &vop_access_desc, (vop_t *) devfs_access },
|
||||
@ -909,7 +911,6 @@ static struct vnodeopv_desc devfs_vnodeop_opv_desc =
|
||||
|
||||
VNODEOP_SET(devfs_vnodeop_opv_desc);
|
||||
|
||||
static vop_t **devfs_specop_p;
|
||||
static struct vnodeopv_entry_desc devfs_specop_entries[] = {
|
||||
{ &vop_default_desc, (vop_t *) spec_vnoperate },
|
||||
{ &vop_access_desc, (vop_t *) devfs_access },
|
||||
|
Loading…
Reference in New Issue
Block a user