fifo_vnops.c (30354) | fifo_vnops.c (30431) |
---|---|
1/* 2 * Copyright (c) 1990, 1993, 1995 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)fifo_vnops.c 8.10 (Berkeley) 5/27/95 | 1/* 2 * Copyright (c) 1990, 1993, 1995 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)fifo_vnops.c 8.10 (Berkeley) 5/27/95 |
34 * $Id: fifo_vnops.c,v 1.27 1997/09/14 02:57:53 peter Exp $ | 34 * $Id: fifo_vnops.c,v 1.28 1997/10/12 20:24:42 phk Exp $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/unistd.h> 40#include <sys/kernel.h> 41#include <sys/malloc.h> 42#include <sys/vnode.h> --- 17 unchanged lines hidden (view full) --- 60 long fi_writers; 61}; 62 63static int fifo_ebadf __P((void)); 64static int fifo_print __P((struct vop_print_args *)); 65 66vop_t **fifo_vnodeop_p; 67static struct vnodeopv_entry_desc fifo_vnodeop_entries[] = { | 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/unistd.h> 40#include <sys/kernel.h> 41#include <sys/malloc.h> 42#include <sys/vnode.h> --- 17 unchanged lines hidden (view full) --- 60 long fi_writers; 61}; 62 63static int fifo_ebadf __P((void)); 64static int fifo_print __P((struct vop_print_args *)); 65 66vop_t **fifo_vnodeop_p; 67static struct vnodeopv_entry_desc fifo_vnodeop_entries[] = { |
68 { &vop_default_desc, (vop_t *)vn_default_error }, 69 { &vop_lookup_desc, (vop_t *)fifo_lookup }, /* lookup */ 70/* XXX: vop_cachedlookup */ 71 { &vop_create_desc, (vop_t *)fifo_create }, /* create */ 72 { &vop_mknod_desc, (vop_t *)fifo_mknod }, /* mknod */ 73 { &vop_open_desc, (vop_t *)fifo_open }, /* open */ 74 { &vop_close_desc, (vop_t *)fifo_close }, /* close */ 75 { &vop_access_desc, (vop_t *)fifo_access }, /* access */ 76 { &vop_getattr_desc, (vop_t *)fifo_getattr }, /* getattr */ 77 { &vop_setattr_desc, (vop_t *)fifo_setattr }, /* setattr */ 78 { &vop_read_desc, (vop_t *)fifo_read }, /* read */ 79 { &vop_write_desc, (vop_t *)fifo_write }, /* write */ 80 { &vop_lease_desc, (vop_t *)fifo_lease_check }, /* lease */ 81 { &vop_ioctl_desc, (vop_t *)fifo_ioctl }, /* ioctl */ 82 { &vop_poll_desc, (vop_t *)fifo_poll }, /* poll */ 83 { &vop_revoke_desc, (vop_t *)fifo_revoke }, /* revoke */ 84 { &vop_mmap_desc, (vop_t *)fifo_mmap }, /* mmap */ 85 { &vop_fsync_desc, (vop_t *)fifo_fsync }, /* fsync */ 86 { &vop_seek_desc, (vop_t *)fifo_seek }, /* seek */ 87 { &vop_remove_desc, (vop_t *)fifo_remove }, /* remove */ 88 { &vop_link_desc, (vop_t *)fifo_link }, /* link */ 89 { &vop_rename_desc, (vop_t *)fifo_rename }, /* rename */ 90 { &vop_mkdir_desc, (vop_t *)fifo_mkdir }, /* mkdir */ 91 { &vop_rmdir_desc, (vop_t *)fifo_rmdir }, /* rmdir */ 92 { &vop_symlink_desc, (vop_t *)fifo_symlink }, /* symlink */ 93 { &vop_readdir_desc, (vop_t *)fifo_readdir }, /* readdir */ 94 { &vop_readlink_desc, (vop_t *)fifo_readlink }, /* readlink */ 95 { &vop_abortop_desc, (vop_t *)fifo_abortop }, /* abortop */ 96 { &vop_inactive_desc, (vop_t *)fifo_inactive }, /* inactive */ 97 { &vop_reclaim_desc, (vop_t *)fifo_reclaim }, /* reclaim */ 98 { &vop_lock_desc, (vop_t *)fifo_lock }, /* lock */ 99 { &vop_unlock_desc, (vop_t *)fifo_unlock }, /* unlock */ 100 { &vop_bmap_desc, (vop_t *)fifo_bmap }, /* bmap */ 101 { &vop_strategy_desc, (vop_t *)fifo_strategy }, /* strategy */ 102 { &vop_print_desc, (vop_t *)fifo_print }, /* print */ 103 { &vop_islocked_desc, (vop_t *)fifo_islocked }, /* islocked */ 104 { &vop_pathconf_desc, (vop_t *)fifo_pathconf }, /* pathconf */ 105 { &vop_advlock_desc, (vop_t *)fifo_advlock }, /* advlock */ 106 { &vop_blkatoff_desc, (vop_t *)fifo_blkatoff }, /* blkatoff */ 107 { &vop_valloc_desc, (vop_t *)fifo_valloc }, /* valloc */ 108 { &vop_vfree_desc, (vop_t *)fifo_vfree }, /* vfree */ 109 { &vop_truncate_desc, (vop_t *)fifo_truncate }, /* truncate */ 110 { &vop_update_desc, (vop_t *)fifo_update }, /* update */ 111 { &vop_bwrite_desc, (vop_t *)fifo_bwrite }, /* bwrite */ | 68 { &vop_default_desc, (vop_t *) vn_default_error }, 69 { &vop_abortop_desc, (vop_t *) fifo_abortop }, 70 { &vop_access_desc, (vop_t *) fifo_access }, 71 { &vop_advlock_desc, (vop_t *) fifo_advlock }, 72 { &vop_blkatoff_desc, (vop_t *) fifo_blkatoff }, 73 { &vop_bmap_desc, (vop_t *) fifo_bmap }, 74 { &vop_bwrite_desc, (vop_t *) fifo_bwrite }, 75 { &vop_close_desc, (vop_t *) fifo_close }, 76 { &vop_create_desc, (vop_t *) fifo_create }, 77 { &vop_fsync_desc, (vop_t *) fifo_fsync }, 78 { &vop_getattr_desc, (vop_t *) fifo_getattr }, 79 { &vop_inactive_desc, (vop_t *) fifo_inactive }, 80 { &vop_ioctl_desc, (vop_t *) fifo_ioctl }, 81 { &vop_islocked_desc, (vop_t *) fifo_islocked }, 82 { &vop_lease_desc, (vop_t *) fifo_lease_check }, 83 { &vop_link_desc, (vop_t *) fifo_link }, 84 { &vop_lock_desc, (vop_t *) fifo_lock }, 85 { &vop_lookup_desc, (vop_t *) fifo_lookup }, 86 { &vop_mkdir_desc, (vop_t *) fifo_mkdir }, 87 { &vop_mknod_desc, (vop_t *) fifo_mknod }, 88 { &vop_mmap_desc, (vop_t *) fifo_mmap }, 89 { &vop_open_desc, (vop_t *) fifo_open }, 90 { &vop_pathconf_desc, (vop_t *) fifo_pathconf }, 91 { &vop_poll_desc, (vop_t *) fifo_poll }, 92 { &vop_print_desc, (vop_t *) fifo_print }, 93 { &vop_read_desc, (vop_t *) fifo_read }, 94 { &vop_readdir_desc, (vop_t *) fifo_readdir }, 95 { &vop_readlink_desc, (vop_t *) fifo_readlink }, 96 { &vop_reclaim_desc, (vop_t *) fifo_reclaim }, 97 { &vop_remove_desc, (vop_t *) fifo_remove }, 98 { &vop_rename_desc, (vop_t *) fifo_rename }, 99 { &vop_revoke_desc, (vop_t *) fifo_revoke }, 100 { &vop_rmdir_desc, (vop_t *) fifo_rmdir }, 101 { &vop_seek_desc, (vop_t *) fifo_seek }, 102 { &vop_setattr_desc, (vop_t *) fifo_setattr }, 103 { &vop_strategy_desc, (vop_t *) fifo_strategy }, 104 { &vop_symlink_desc, (vop_t *) fifo_symlink }, 105 { &vop_truncate_desc, (vop_t *) fifo_truncate }, 106 { &vop_unlock_desc, (vop_t *) fifo_unlock }, 107 { &vop_update_desc, (vop_t *) fifo_update }, 108 { &vop_valloc_desc, (vop_t *) fifo_valloc }, 109 { &vop_vfree_desc, (vop_t *) fifo_vfree }, 110 { &vop_write_desc, (vop_t *) fifo_write }, |
112 { NULL, NULL } 113}; 114static struct vnodeopv_desc fifo_vnodeop_opv_desc = 115 { &fifo_vnodeop_p, fifo_vnodeop_entries }; 116 117VNODEOP_SET(fifo_vnodeop_opv_desc); 118 119/* --- 425 unchanged lines hidden --- | 111 { NULL, NULL } 112}; 113static struct vnodeopv_desc fifo_vnodeop_opv_desc = 114 { &fifo_vnodeop_p, fifo_vnodeop_entries }; 115 116VNODEOP_SET(fifo_vnodeop_opv_desc); 117 118/* --- 425 unchanged lines hidden --- |