vfs_subr.c (427992ecdbd2cc5b27fea0dab9f7edf3993ff579) | vfs_subr.c (e76d823b81edf1f8bcbdbe1143d2c0030c8bc299) |
---|---|
1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 3988 unchanged lines hidden (view full) --- 3997 3998 KNOTE_UNLOCKED(&fs_knlist, event); 3999} 4000 4001static int filt_fsattach(struct knote *kn); 4002static void filt_fsdetach(struct knote *kn); 4003static int filt_fsevent(struct knote *kn, long hint); 4004 | 1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 3988 unchanged lines hidden (view full) --- 3997 3998 KNOTE_UNLOCKED(&fs_knlist, event); 3999} 4000 4001static int filt_fsattach(struct knote *kn); 4002static void filt_fsdetach(struct knote *kn); 4003static int filt_fsevent(struct knote *kn, long hint); 4004 |
4005struct filterops fs_filtops = 4006 { 0, filt_fsattach, filt_fsdetach, filt_fsevent }; | 4005struct filterops fs_filtops = { 4006 .f_isfd = 0, 4007 .f_attach = filt_fsattach, 4008 .f_detach = filt_fsdetach, 4009 .f_event = filt_fsevent 4010}; |
4007 4008static int 4009filt_fsattach(struct knote *kn) 4010{ 4011 4012 kn->kn_flags |= EV_CLEAR; 4013 knlist_add(&fs_knlist, kn, 0); 4014 return (0); --- 56 unchanged lines hidden (view full) --- 4071 getbinuptime(&bt); 4072 return (((u_quad_t)bt.sec << 32LL) | (bt.frac >> 32LL)); 4073} 4074 4075static int filt_vfsread(struct knote *kn, long hint); 4076static int filt_vfswrite(struct knote *kn, long hint); 4077static int filt_vfsvnode(struct knote *kn, long hint); 4078static void filt_vfsdetach(struct knote *kn); | 4011 4012static int 4013filt_fsattach(struct knote *kn) 4014{ 4015 4016 kn->kn_flags |= EV_CLEAR; 4017 knlist_add(&fs_knlist, kn, 0); 4018 return (0); --- 56 unchanged lines hidden (view full) --- 4075 getbinuptime(&bt); 4076 return (((u_quad_t)bt.sec << 32LL) | (bt.frac >> 32LL)); 4077} 4078 4079static int filt_vfsread(struct knote *kn, long hint); 4080static int filt_vfswrite(struct knote *kn, long hint); 4081static int filt_vfsvnode(struct knote *kn, long hint); 4082static void filt_vfsdetach(struct knote *kn); |
4079static struct filterops vfsread_filtops = 4080 { 1, NULL, filt_vfsdetach, filt_vfsread }; 4081static struct filterops vfswrite_filtops = 4082 { 1, NULL, filt_vfsdetach, filt_vfswrite }; 4083static struct filterops vfsvnode_filtops = 4084 { 1, NULL, filt_vfsdetach, filt_vfsvnode }; | 4083static struct filterops vfsread_filtops = { 4084 .f_isfd = 1, 4085 .f_detach = filt_vfsdetach, 4086 .f_event = filt_vfsread 4087}; 4088static struct filterops vfswrite_filtops = { 4089 .f_isfd = 1, 4090 .f_detach = filt_vfsdetach, 4091 .f_event = filt_vfswrite 4092}; 4093static struct filterops vfsvnode_filtops = { 4094 .f_isfd = 1, 4095 .f_detach = filt_vfsdetach, 4096 .f_event = filt_vfsvnode 4097}; |
4085 4086static void 4087vfs_knllock(void *arg) 4088{ 4089 struct vnode *vp = arg; 4090 4091 vn_lock(vp, LK_EXCLUSIVE | LK_RETRY); 4092} --- 234 unchanged lines hidden --- | 4098 4099static void 4100vfs_knllock(void *arg) 4101{ 4102 struct vnode *vp = arg; 4103 4104 vn_lock(vp, LK_EXCLUSIVE | LK_RETRY); 4105} --- 234 unchanged lines hidden --- |