diff options
author | delphij <delphij@FreeBSD.org> | 2007-06-28 02:36:41 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2007-06-28 02:36:41 +0000 |
commit | 17bb881f7553c5ddf257278c108143c2567e52d7 (patch) | |
tree | 4d14b8925b972369354f5941d807b744e887e370 /sys/fs/tmpfs/tmpfs_fifoops.c | |
parent | ee97250932c893f15246f2a120888d5e3221c8ec (diff) | |
download | FreeBSD-src-17bb881f7553c5ddf257278c108143c2567e52d7.zip FreeBSD-src-17bb881f7553c5ddf257278c108143c2567e52d7.tar.gz |
Staticify most of fifo/vn operations, they should not
be directly exposed outside.
Approved by: re (tmpfs blanket)
Diffstat (limited to 'sys/fs/tmpfs/tmpfs_fifoops.c')
-rw-r--r-- | sys/fs/tmpfs/tmpfs_fifoops.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sys/fs/tmpfs/tmpfs_fifoops.c b/sys/fs/tmpfs/tmpfs_fifoops.c index 2ce15d2..4b95275 100644 --- a/sys/fs/tmpfs/tmpfs_fifoops.c +++ b/sys/fs/tmpfs/tmpfs_fifoops.c @@ -57,21 +57,7 @@ /* --------------------------------------------------------------------- */ -/* - * vnode operations vector used for fifos stored in a tmpfs file system. - */ -struct vop_vector tmpfs_fifoop_entries = { - .vop_default = &fifo_specops, - .vop_close = tmpfs_fifo_close, - .vop_reclaim = tmpfs_reclaim, - .vop_access = tmpfs_access, - .vop_getattr = tmpfs_getattr, - .vop_setattr = tmpfs_setattr, - .vop_kqfilter = tmpfs_fifo_kqfilter, -}; - - -int +static int tmpfs_fifo_kqfilter(struct vop_kqfilter_args *ap) { struct vnode *vp; @@ -94,7 +80,7 @@ tmpfs_fifo_kqfilter(struct vop_kqfilter_args *ap) /* --------------------------------------------------------------------- */ -int +static int tmpfs_fifo_close(struct vop_close_args *v) { struct tmpfs_node *node; @@ -104,3 +90,17 @@ tmpfs_fifo_close(struct vop_close_args *v) tmpfs_update(v->a_vp); return fifo_specops.vop_close(v); } + +/* + * vnode operations vector used for fifos stored in a tmpfs file system. + */ +struct vop_vector tmpfs_fifoop_entries = { + .vop_default = &fifo_specops, + .vop_close = tmpfs_fifo_close, + .vop_reclaim = tmpfs_reclaim, + .vop_access = tmpfs_access, + .vop_getattr = tmpfs_getattr, + .vop_setattr = tmpfs_setattr, + .vop_kqfilter = tmpfs_fifo_kqfilter, +}; + |