1 /* 2 * Copyright (c) 2004 The DragonFly Project. All rights reserved. 3 * 4 * This code is derived from software contributed to The DragonFly Project 5 * by Matthew Dillon <dillon@backplane.com> 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 11 * 1. Redistributions of source code must retain the above copyright 12 * notice, this list of conditions and the following disclaimer. 13 * 2. Redistributions in binary form must reproduce the above copyright 14 * notice, this list of conditions and the following disclaimer in 15 * the documentation and/or other materials provided with the 16 * distribution. 17 * 3. Neither the name of The DragonFly Project nor the names of its 18 * contributors may be used to endorse or promote products derived 19 * from this software without specific, prior written permission. 20 * 21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 24 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 25 * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 26 * INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, 27 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 28 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 29 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 30 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 31 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * $DragonFly: src/sys/sys/vfsops.h,v 1.32 2008/06/19 23:27:36 dillon Exp $ 35 */ 36 37 /* 38 * The vop_ops structure vectors all access to a filesystem. It contains a 39 * fixed set of vectors. 40 * 41 * In DragonFly the ultimate goal is to thread the VFS, which means that 42 * the dispatch functions will eventually be called from the context of 43 * a management thread rather then directly called by a process. This 44 * requires us to divorce direct process dependancies (in particular ioctl 45 * and UIO's). In addition, it is our intention to implement kernel 46 * level cache management and coherency in the vop_*() interfacing 47 * layer. 48 * 49 * The number of management threads will depend on the VFS. The idea is 50 * to give a high performance VFS such as UFS at least one thread per cpu, 51 * and a low performance VFS such as CD9660 perhaps just one thread period. 52 * Blocking issues within the management thread are up to the VFS itself, 53 * but DragonFly will introduce a layer above the VFS to handle cacheable 54 * requests without having to enter the VFS (e.g. by making attribute 55 * and VM object information a permanent fixture of the vnode structure 56 * and accessing them directly). 57 * 58 * THE VOPOPS VECTORS SHOULD NEVER BE CALLED DIRECTLY! Instead always use 59 * the kernel helper procedures vop_*() to call a vopop. The kernel 60 * helper procedure will be responsible for handling the DragonFly messaging 61 * conversion when it occurs. 62 */ 63 64 #ifndef _SYS_VFSOPS_H_ 65 #define _SYS_VFSOPS_H_ 66 67 #ifndef _SYS_ACL_H_ 68 #include <sys/acl.h> 69 #endif 70 #ifndef _SYS_BUF_H_ 71 #include <sys/buf.h> /* buf_cmd_t */ 72 #endif 73 #ifndef _SYS_FCNTL_H_ 74 #include <sys/fcntl.h> /* AT_EACCESS */ 75 #endif 76 77 struct syslink_desc; 78 struct vnode; 79 struct thread; 80 struct nchandle; 81 struct componentname; 82 struct vattr; 83 struct ucred; 84 struct uio; 85 struct file; 86 struct knote; 87 struct vm_object; 88 struct vm_page; 89 struct vfscache; 90 91 struct vop_generic_args { 92 struct syslink_desc *a_desc; /* command descriptor for the call */ 93 struct vop_ops *a_ops; /* operations vector for the call */ 94 int a_reserved[4]; 95 }; 96 97 struct vop_old_lookup_args { 98 struct vop_generic_args a_head; 99 struct vnode *a_dvp; 100 struct vnode **a_vpp; 101 struct componentname *a_cnp; 102 }; 103 104 struct vop_old_create_args { 105 struct vop_generic_args a_head; 106 struct vnode *a_dvp; 107 struct vnode **a_vpp; 108 struct componentname *a_cnp; 109 struct vattr *a_vap; 110 }; 111 112 struct vop_old_whiteout_args { 113 struct vop_generic_args a_head; 114 struct vnode *a_dvp; 115 struct componentname *a_cnp; 116 int a_flags; 117 }; 118 119 struct vop_old_mknod_args { 120 struct vop_generic_args a_head; 121 struct vnode *a_dvp; 122 struct vnode **a_vpp; 123 struct componentname *a_cnp; 124 struct vattr *a_vap; 125 }; 126 127 struct vop_open_args { 128 struct vop_generic_args a_head; 129 struct vnode *a_vp; 130 int a_mode; 131 struct ucred *a_cred; 132 struct file *a_fp; /* optional fp for fileops override */ 133 }; 134 135 struct vop_close_args { 136 struct vop_generic_args a_head; 137 struct vnode *a_vp; 138 int a_fflag; 139 }; 140 141 struct vop_access_args { 142 struct vop_generic_args a_head; 143 struct vnode *a_vp; 144 int a_mode; /* V* bitmask */ 145 int a_flags; /* AT_* bitmask */ 146 struct ucred *a_cred; 147 }; 148 149 struct vop_getattr_args { 150 struct vop_generic_args a_head; 151 struct vnode *a_vp; 152 struct vattr *a_vap; 153 }; 154 155 struct vop_setattr_args { 156 struct vop_generic_args a_head; 157 struct vnode *a_vp; 158 struct vattr *a_vap; 159 struct ucred *a_cred; 160 }; 161 162 struct vop_read_args { 163 struct vop_generic_args a_head; 164 struct vnode *a_vp; 165 struct uio *a_uio; 166 int a_ioflag; 167 struct ucred *a_cred; 168 }; 169 170 struct vop_write_args { 171 struct vop_generic_args a_head; 172 struct vnode *a_vp; 173 struct uio *a_uio; 174 int a_ioflag; 175 struct ucred *a_cred; 176 }; 177 178 struct vop_ioctl_args { 179 struct vop_generic_args a_head; 180 struct vnode *a_vp; 181 u_long a_command; 182 caddr_t a_data; 183 int a_fflag; 184 struct ucred *a_cred; 185 struct sysmsg *a_sysmsg; 186 }; 187 188 struct vop_poll_args { 189 struct vop_generic_args a_head; 190 struct vnode *a_vp; 191 int a_events; 192 struct ucred *a_cred; 193 }; 194 195 struct vop_kqfilter_args { 196 struct vop_generic_args a_head; 197 struct vnode *a_vp; 198 struct knote *a_kn; 199 }; 200 201 struct vop_mmap_args { 202 struct vop_generic_args a_head; 203 struct vnode *a_vp; 204 int a_fflags; 205 struct ucred *a_cred; 206 }; 207 208 struct vop_fsync_args { 209 struct vop_generic_args a_head; 210 struct vnode *a_vp; 211 int a_waitfor; 212 int a_flags; 213 }; 214 215 struct vop_old_remove_args { 216 struct vop_generic_args a_head; 217 struct vnode *a_dvp; 218 struct vnode *a_vp; 219 struct componentname *a_cnp; 220 }; 221 222 struct vop_old_link_args { 223 struct vop_generic_args a_head; 224 struct vnode *a_tdvp; 225 struct vnode *a_vp; 226 struct componentname *a_cnp; 227 }; 228 229 struct vop_old_rename_args { 230 struct vop_generic_args a_head; 231 struct vnode *a_fdvp; 232 struct vnode *a_fvp; 233 struct componentname *a_fcnp; 234 struct vnode *a_tdvp; 235 struct vnode *a_tvp; 236 struct componentname *a_tcnp; 237 }; 238 239 struct vop_old_mkdir_args { 240 struct vop_generic_args a_head; 241 struct vnode *a_dvp; 242 struct vnode **a_vpp; 243 struct componentname *a_cnp; 244 struct vattr *a_vap; 245 }; 246 247 struct vop_old_rmdir_args { 248 struct vop_generic_args a_head; 249 struct vnode *a_dvp; 250 struct vnode *a_vp; 251 struct componentname *a_cnp; 252 }; 253 254 struct vop_old_symlink_args { 255 struct vop_generic_args a_head; 256 struct vnode *a_dvp; 257 struct vnode **a_vpp; 258 struct componentname *a_cnp; 259 struct vattr *a_vap; 260 char *a_target; 261 }; 262 263 struct vop_readdir_args { 264 struct vop_generic_args a_head; 265 struct vnode *a_vp; 266 struct uio *a_uio; 267 struct ucred *a_cred; 268 int *a_eofflag; 269 int *a_ncookies; 270 off_t **a_cookies; 271 }; 272 273 struct vop_readlink_args { 274 struct vop_generic_args a_head; 275 struct vnode *a_vp; 276 struct uio *a_uio; 277 struct ucred *a_cred; 278 }; 279 280 struct vop_inactive_args { 281 struct vop_generic_args a_head; 282 struct vnode *a_vp; 283 }; 284 285 struct vop_reclaim_args { 286 struct vop_generic_args a_head; 287 struct vnode *a_vp; 288 }; 289 290 struct vop_bmap_args { 291 struct vop_generic_args a_head; 292 struct vnode *a_vp; 293 off_t a_loffset; 294 off_t *a_doffsetp; 295 int *a_runp; 296 int *a_runb; 297 buf_cmd_t a_cmd; /* BUF_CMD_READ, BUF_CMD_WRITE, etc */ 298 }; 299 300 struct vop_strategy_args { 301 struct vop_generic_args a_head; 302 struct vnode *a_vp; 303 struct bio *a_bio; 304 }; 305 306 struct vop_print_args { 307 struct vop_generic_args a_head; 308 struct vnode *a_vp; 309 }; 310 311 struct vop_pathconf_args { 312 struct vop_generic_args a_head; 313 struct vnode *a_vp; 314 int a_name; 315 register_t *a_retval; 316 }; 317 318 struct vop_advlock_args { 319 struct vop_generic_args a_head; 320 struct vnode *a_vp; 321 caddr_t a_id; 322 int a_op; 323 struct flock *a_fl; 324 int a_flags; 325 }; 326 327 struct vop_balloc_args { 328 struct vop_generic_args a_head; 329 struct vnode *a_vp; 330 off_t a_startoffset; 331 int a_size; 332 struct ucred *a_cred; 333 int a_flags; 334 struct buf **a_bpp; 335 }; 336 337 struct vop_reallocblks_args { 338 struct vop_generic_args a_head; 339 struct vnode *a_vp; 340 struct cluster_save *a_buflist; 341 }; 342 343 struct vop_getpages_args { 344 struct vop_generic_args a_head; 345 struct vnode *a_vp; 346 struct vm_page **a_m; 347 int a_count; 348 int a_reqpage; 349 vm_ooffset_t a_offset; 350 int a_seqaccess; 351 }; 352 353 struct vop_putpages_args { 354 struct vop_generic_args a_head; 355 struct vnode *a_vp; 356 struct vm_page **a_m; 357 int a_count; 358 int a_sync; 359 int *a_rtvals; 360 vm_ooffset_t a_offset; 361 }; 362 363 struct vop_freeblks_args { 364 struct vop_generic_args a_head; 365 struct vnode *a_vp; 366 off_t a_offset; 367 int a_length; 368 }; 369 370 struct vop_getacl_args { 371 struct vop_generic_args a_head; 372 struct vnode *a_vp; 373 acl_type_t a_type; 374 struct acl *a_aclp; 375 struct ucred *a_cred; 376 }; 377 378 struct vop_setacl_args { 379 struct vop_generic_args a_head; 380 struct vnode *a_vp; 381 acl_type_t a_type; 382 struct acl *a_aclp; 383 struct ucred *a_cred; 384 }; 385 386 struct vop_aclcheck_args { 387 struct vop_generic_args a_head; 388 struct vnode *a_vp; 389 acl_type_t a_type; 390 struct acl *a_aclp; 391 struct ucred *a_cred; 392 }; 393 394 struct vop_getextattr_args { 395 struct vop_generic_args a_head; 396 struct vnode *a_vp; 397 char *a_name; 398 struct uio *a_uio; 399 struct ucred *a_cred; 400 }; 401 402 struct vop_setextattr_args { 403 struct vop_generic_args a_head; 404 struct vnode *a_vp; 405 char *a_name; 406 struct uio *a_uio; 407 struct ucred *a_cred; 408 }; 409 410 struct vop_mountctl_args { 411 struct vop_generic_args a_head; 412 int a_op; 413 struct file *a_fp; 414 const void *a_ctl; 415 int a_ctllen; 416 void *a_buf; 417 int a_buflen; 418 int *a_res; 419 struct vnode *a_vp; 420 }; 421 422 struct vop_markatime_args { 423 struct vop_generic_args a_head; 424 int a_op; 425 struct vnode *a_vp; 426 struct ucred *a_cred; 427 }; 428 429 /* 430 * NEW API 431 */ 432 433 /* 434 * Warning: a_dvp is only held, not ref'd. The target must still vget() 435 * it. 436 */ 437 struct vop_nresolve_args { 438 struct vop_generic_args a_head; 439 struct nchandle *a_nch; 440 struct vnode *a_dvp; 441 struct ucred *a_cred; 442 }; 443 444 struct vop_nlookupdotdot_args { 445 struct vop_generic_args a_head; 446 struct vnode *a_dvp; 447 struct vnode **a_vpp; 448 struct ucred *a_cred; 449 char **a_fakename; 450 }; 451 452 /* 453 * Warning: a_dvp is only held, not ref'd. The target must still vget() 454 * it. 455 */ 456 struct vop_ncreate_args { 457 struct vop_generic_args a_head; 458 struct nchandle *a_nch; /* locked namespace */ 459 struct vnode *a_dvp; /* held directory vnode */ 460 struct vnode **a_vpp; /* returned refd & locked */ 461 struct ucred *a_cred; 462 struct vattr *a_vap; 463 }; 464 465 /* 466 * Warning: a_dvp is only held, not ref'd. The target must still vget() 467 * it. 468 */ 469 struct vop_nmkdir_args { 470 struct vop_generic_args a_head; 471 struct nchandle *a_nch; /* locked namespace */ 472 struct vnode *a_dvp; 473 struct vnode **a_vpp; /* returned refd & locked */ 474 struct ucred *a_cred; 475 struct vattr *a_vap; 476 }; 477 478 /* 479 * Warning: a_dvp is only held, not ref'd. The target must still vget() 480 * it. 481 */ 482 struct vop_nmknod_args { 483 struct vop_generic_args a_head; 484 struct nchandle *a_nch; 485 struct vnode *a_dvp; 486 struct vnode **a_vpp; 487 struct ucred *a_cred; 488 struct vattr *a_vap; 489 }; 490 491 /* 492 * Warning: a_dvp is only held, not ref'd. The target must still vget() 493 * it. 494 */ 495 struct vop_nlink_args { 496 struct vop_generic_args a_head; 497 struct nchandle *a_nch; 498 struct vnode *a_dvp; 499 struct vnode *a_vp; 500 struct ucred *a_cred; 501 }; 502 503 /* 504 * Warning: a_dvp is only held, not ref'd. The target must still vget() 505 * it. 506 */ 507 struct vop_nsymlink_args { 508 struct vop_generic_args a_head; 509 struct nchandle *a_nch; 510 struct vnode *a_dvp; 511 struct vnode **a_vpp; 512 struct ucred *a_cred; 513 struct vattr *a_vap; 514 char *a_target; 515 }; 516 517 /* 518 * Warning: a_dvp is only held, not ref'd. The target must still vget() 519 * it. 520 */ 521 struct vop_nwhiteout_args { 522 struct vop_generic_args a_head; 523 struct nchandle *a_nch; 524 struct vnode *a_dvp; 525 struct ucred *a_cred; 526 int a_flags; 527 }; 528 529 /* 530 * Warning: a_dvp is only held, not ref'd. The target must still vget() 531 * it. 532 */ 533 struct vop_nremove_args { 534 struct vop_generic_args a_head; 535 struct nchandle *a_nch; /* locked namespace */ 536 struct vnode *a_dvp; 537 struct ucred *a_cred; 538 }; 539 540 /* 541 * Warning: a_dvp is only held, not ref'd. The target must still vget() 542 * it. 543 */ 544 struct vop_nrmdir_args { 545 struct vop_generic_args a_head; 546 struct nchandle *a_nch; /* locked namespace */ 547 struct vnode *a_dvp; 548 struct ucred *a_cred; 549 }; 550 551 /* 552 * Warning: a_fdvp and a_tdvp are only held, not ref'd. The target must 553 * still vget() it. 554 */ 555 struct vop_nrename_args { 556 struct vop_generic_args a_head; 557 struct nchandle *a_fnch; /* locked namespace / from */ 558 struct nchandle *a_tnch; /* locked namespace / to */ 559 struct vnode *a_fdvp; 560 struct vnode *a_tdvp; 561 struct ucred *a_cred; 562 }; 563 564 /* 565 * This structure is the post-compiled VOP operations vector. vop_ops are 566 * typically per-mount entities. The first section is used by our vop_*() 567 * function wrappers to implement hooks for per-mount management functions 568 * such as journaling and cache coherency protocols. The second section is 569 * the function dispatch for the VFSs. The functions are supposed to run 570 * in the context of the VFS's thread (if it has one) and should not be 571 * directly called from random kernel code. Note that VOCALL()s are direct 572 * calls used for chaining vop_ops structures from a VFS context. 573 */ 574 struct vop_ops { 575 struct { 576 struct mount *vv_mount; 577 } head; 578 579 #define vop_ops_first_field vop_default 580 int (*vop_default)(struct vop_generic_args *); 581 int (*vop_unused11)(void *); 582 int (*vop_old_lookup)(struct vop_old_lookup_args *); 583 int (*vop_unused03)(void *); 584 int (*vop_old_create)(struct vop_old_create_args *); 585 int (*vop_old_whiteout)(struct vop_old_whiteout_args *); 586 int (*vop_old_mknod)(struct vop_old_mknod_args *); 587 int (*vop_open)(struct vop_open_args *); 588 int (*vop_close)(struct vop_close_args *); 589 int (*vop_access)(struct vop_access_args *); 590 int (*vop_getattr)(struct vop_getattr_args *); 591 int (*vop_setattr)(struct vop_setattr_args *); 592 int (*vop_read)(struct vop_read_args *); 593 int (*vop_write)(struct vop_write_args *); 594 int (*vop_unused04)(void *); 595 int (*vop_ioctl)(struct vop_ioctl_args *); 596 int (*vop_poll)(struct vop_poll_args *); 597 int (*vop_kqfilter)(struct vop_kqfilter_args *); 598 int (*vop_unused01)(void *); /* was vop_revoke */ 599 int (*vop_mmap)(struct vop_mmap_args *); 600 int (*vop_fsync)(struct vop_fsync_args *); 601 int (*vop_old_remove)(struct vop_old_remove_args *); 602 int (*vop_old_link)(struct vop_old_link_args *); 603 int (*vop_old_rename)(struct vop_old_rename_args *); 604 int (*vop_old_mkdir)(struct vop_old_mkdir_args *); 605 int (*vop_old_rmdir)(struct vop_old_rmdir_args *); 606 int (*vop_old_symlink)(struct vop_old_symlink_args *); 607 int (*vop_readdir)(struct vop_readdir_args *); 608 int (*vop_readlink)(struct vop_readlink_args *); 609 int (*vop_inactive)(struct vop_inactive_args *); 610 int (*vop_reclaim)(struct vop_reclaim_args *); 611 int (*vop_unused09)(void *); 612 int (*vop_unused10)(void *); 613 int (*vop_bmap)(struct vop_bmap_args *); 614 int (*vop_strategy)(struct vop_strategy_args *); 615 int (*vop_print)(struct vop_print_args *); 616 int (*vop_pathconf)(struct vop_pathconf_args *); 617 int (*vop_advlock)(struct vop_advlock_args *); 618 int (*vop_balloc)(struct vop_balloc_args *); 619 int (*vop_reallocblks)(struct vop_reallocblks_args *); 620 int (*vop_getpages)(struct vop_getpages_args *); 621 int (*vop_putpages)(struct vop_putpages_args *); 622 int (*vop_freeblks)(struct vop_freeblks_args *); 623 int (*vop_unused05)(void *); 624 int (*vop_getacl)(struct vop_getacl_args *); 625 int (*vop_setacl)(struct vop_setacl_args *); 626 int (*vop_aclcheck)(struct vop_aclcheck_args *); 627 int (*vop_getextattr)(struct vop_getextattr_args *); 628 int (*vop_setextattr)(struct vop_setextattr_args *); 629 int (*vop_unused06)(void *); 630 int (*vop_unused07)(void *); 631 int (*vop_unused08)(void *); 632 int (*vop_mountctl)(struct vop_mountctl_args *); 633 int (*vop_markatime)(struct vop_markatime_args *); 634 635 int (*vop_nresolve)(struct vop_nresolve_args *); 636 int (*vop_nlookupdotdot)(struct vop_nlookupdotdot_args *); 637 int (*vop_ncreate)(struct vop_ncreate_args *); 638 int (*vop_nmkdir)(struct vop_nmkdir_args *); 639 int (*vop_nmknod)(struct vop_nmknod_args *); 640 int (*vop_nlink)(struct vop_nlink_args *); 641 int (*vop_nsymlink)(struct vop_nsymlink_args *); 642 int (*vop_nwhiteout)(struct vop_nwhiteout_args *); 643 int (*vop_nremove)(struct vop_nremove_args *); 644 int (*vop_nrmdir)(struct vop_nrmdir_args *); 645 int (*vop_nrename)(struct vop_nrename_args *); 646 #define vop_ops_last_field vop_nrename 647 }; 648 649 /* 650 * vop_mountctl() operations 651 */ 652 #define VFSSET_DETACH 0 653 #define VFSSET_ATTACH 1 654 655 /* 656 * Kernel VOP arguments union, suitable for malloc / embedding in other 657 * structures. The vop_args_union can hold any VOP call argument structure. 658 * Note that vu_head is broken out. 659 */ 660 union vop_args_union { 661 struct vop_generic_args vu_head; 662 struct vop_generic_args vu_default; 663 struct vop_old_lookup_args vu_lookup; 664 struct vop_old_create_args vu_create; 665 struct vop_old_whiteout_args vu_whiteout; 666 struct vop_old_mknod_args vu_mknod; 667 struct vop_open_args vu_open; 668 struct vop_close_args vu_close; 669 struct vop_access_args vu_access; 670 struct vop_getattr_args vu_getattr; 671 struct vop_setattr_args vu_setattr; 672 struct vop_read_args vu_read; 673 struct vop_write_args vu_write; 674 struct vop_ioctl_args vu_ioctl; 675 struct vop_poll_args vu_poll; 676 struct vop_kqfilter_args vu_kqfilter; 677 struct vop_mmap_args vu_mmap; 678 struct vop_fsync_args vu_fsync; 679 struct vop_old_remove_args vu_remove; 680 struct vop_old_link_args vu_link; 681 struct vop_old_rename_args vu_rename; 682 struct vop_old_mkdir_args vu_mkdir; 683 struct vop_old_rmdir_args vu_rmdir; 684 struct vop_old_symlink_args vu_symlink; 685 struct vop_readdir_args vu_readdir; 686 struct vop_readlink_args vu_readlink; 687 struct vop_inactive_args vu_inactive; 688 struct vop_reclaim_args vu_reclaim; 689 struct vop_bmap_args vu_bmap; 690 struct vop_strategy_args vu_strategy; 691 struct vop_print_args vu_print; 692 struct vop_pathconf_args vu_pathconf; 693 struct vop_advlock_args vu_advlock; 694 struct vop_balloc_args vu_balloc; 695 struct vop_reallocblks_args vu_reallocblks; 696 struct vop_getpages_args vu_getpages; 697 struct vop_putpages_args vu_putpages; 698 struct vop_freeblks_args vu_freeblks; 699 struct vop_getacl_args vu_getacl; 700 struct vop_setacl_args vu_setacl; 701 struct vop_aclcheck_args vu_aclcheck; 702 struct vop_getextattr_args vu_getextattr; 703 struct vop_setextattr_args vu_setextattr; 704 struct vop_mountctl_args vu_mountctl; 705 struct vop_markatime_args vu_markatime; 706 707 struct vop_nresolve_args vu_nresolve; 708 struct vop_nlookupdotdot_args vu_nlookupdotdot; 709 struct vop_ncreate_args vu_ncreate; 710 struct vop_nmkdir_args vu_nmkdir; 711 struct vop_nmknod_args vu_nmknod; 712 struct vop_nlink_args vu_nlink; 713 struct vop_nsymlink_args vu_nsymlink; 714 struct vop_nwhiteout_args vu_nwhiteout; 715 struct vop_nremove_args vu_nremove; 716 struct vop_nrmdir_args vu_nrmdir; 717 struct vop_nrename_args vu_nrename; 718 }; 719 720 #ifdef _KERNEL 721 722 /* 723 * Kernel VOP call wrappers. These wrappers are responsible for wrapping 724 * the arguments in the appropriate VOP arguments structure, sending the 725 * message, and waiting for a reply. All kernel and VFS code should generally 726 * call these wrappers rather then attempt to call the operations vector 727 * routine directly in order to allow DragonFly to properly wrap the operation 728 * in a message and dispatch it to the correct thread. 729 */ 730 int vop_old_lookup(struct vop_ops *ops, struct vnode *dvp, 731 struct vnode **vpp, struct componentname *cnp); 732 int vop_old_create(struct vop_ops *ops, struct vnode *dvp, 733 struct vnode **vpp, struct componentname *cnp, 734 struct vattr *vap); 735 int vop_old_whiteout(struct vop_ops *ops, struct vnode *dvp, 736 struct componentname *cnp, int flags); 737 int vop_old_mknod(struct vop_ops *ops, struct vnode *dvp, 738 struct vnode **vpp, struct componentname *cnp, 739 struct vattr *vap); 740 int vop_open(struct vop_ops *ops, struct vnode *vp, int mode, 741 struct ucred *cred, struct file *file); 742 int vop_close(struct vop_ops *ops, struct vnode *vp, int fflag); 743 int vop_access(struct vop_ops *ops, struct vnode *vp, int mode, int flags, 744 struct ucred *cred); 745 int vop_getattr(struct vop_ops *ops, struct vnode *vp, struct vattr *vap); 746 int vop_setattr(struct vop_ops *ops, struct vnode *vp, struct vattr *vap, 747 struct ucred *cred); 748 int vop_read(struct vop_ops *ops, struct vnode *vp, struct uio *uio, 749 int ioflag, struct ucred *cred); 750 int vop_write(struct vop_ops *ops, struct vnode *vp, struct uio *uio, 751 int ioflag, struct ucred *cred); 752 int vop_ioctl(struct vop_ops *ops, struct vnode *vp, u_long command, 753 caddr_t data, int fflag, struct ucred *cred, 754 struct sysmsg *msg); 755 int vop_poll(struct vop_ops *ops, struct vnode *vp, int events, 756 struct ucred *cred); 757 int vop_kqfilter(struct vop_ops *ops, struct vnode *vp, struct knote *kn); 758 int vop_mmap(struct vop_ops *ops, struct vnode *vp, int fflags, 759 struct ucred *cred); 760 int vop_fsync(struct vop_ops *ops, struct vnode *vp, int waitfor, int flags); 761 int vop_old_remove(struct vop_ops *ops, struct vnode *dvp, 762 struct vnode *vp, struct componentname *cnp); 763 int vop_old_link(struct vop_ops *ops, struct vnode *tdvp, 764 struct vnode *vp, struct componentname *cnp); 765 int vop_old_rename(struct vop_ops *ops, struct vnode *fdvp, 766 struct vnode *fvp, struct componentname *fcnp, 767 struct vnode *tdvp, struct vnode *tvp, 768 struct componentname *tcnp); 769 int vop_old_mkdir(struct vop_ops *ops, struct vnode *dvp, 770 struct vnode **vpp, struct componentname *cnp, 771 struct vattr *vap); 772 int vop_old_rmdir(struct vop_ops *ops, struct vnode *dvp, 773 struct vnode *vp, struct componentname *cnp); 774 int vop_old_symlink(struct vop_ops *ops, struct vnode *dvp, 775 struct vnode **vpp, struct componentname *cnp, 776 struct vattr *vap, char *target); 777 int vop_readdir(struct vop_ops *ops, struct vnode *vp, struct uio *uio, 778 struct ucred *cred, int *eofflag, 779 int *ncookies, off_t **cookies); 780 int vop_readlink(struct vop_ops *ops, struct vnode *vp, struct uio *uio, 781 struct ucred *cred); 782 int vop_inactive(struct vop_ops *ops, struct vnode *vp); 783 int vop_reclaim(struct vop_ops *ops, struct vnode *vp); 784 int vop_bmap(struct vop_ops *ops, struct vnode *vp, off_t loffset, 785 off_t *doffsetp, int *runp, int *runb, buf_cmd_t cmd); 786 int vop_strategy(struct vop_ops *ops, struct vnode *vp, struct bio *bio); 787 int vop_print(struct vop_ops *ops, struct vnode *vp); 788 int vop_pathconf(struct vop_ops *ops, struct vnode *vp, int name, 789 register_t *retval); 790 int vop_advlock(struct vop_ops *ops, struct vnode *vp, caddr_t id, int op, 791 struct flock *fl, int flags); 792 int vop_balloc(struct vop_ops *ops, struct vnode *vp, off_t startoffset, 793 int size, struct ucred *cred, int flags, 794 struct buf **bpp); 795 int vop_reallocblks(struct vop_ops *ops, struct vnode *vp, 796 struct cluster_save *buflist); 797 int vop_getpages(struct vop_ops *ops, struct vnode *vp, struct vm_page **m, 798 int count, int reqpage, vm_ooffset_t offset, int seqaccess); 799 int vop_putpages(struct vop_ops *ops, struct vnode *vp, struct vm_page **m, 800 int count, int sync, int *rtvals, vm_ooffset_t offset); 801 int vop_freeblks(struct vop_ops *ops, struct vnode *vp, 802 off_t offset, int length); 803 int vop_getacl(struct vop_ops *ops, struct vnode *vp, acl_type_t type, 804 struct acl *aclp, struct ucred *cred); 805 int vop_setacl(struct vop_ops *ops, struct vnode *vp, acl_type_t type, 806 struct acl *aclp, struct ucred *cred); 807 int vop_aclcheck(struct vop_ops *ops, struct vnode *vp, acl_type_t type, 808 struct acl *aclp, struct ucred *cred); 809 int vop_getextattr(struct vop_ops *ops, struct vnode *vp, char *name, 810 struct uio *uio, struct ucred *cred); 811 int vop_setextattr(struct vop_ops *ops, struct vnode *vp, char *name, 812 struct uio *uio, struct ucred *cred); 813 int vop_mountctl(struct vop_ops *ops, struct vnode *vp, int op, 814 struct file *fp, const void *ctl, int ctllen, 815 void *buf, int buflen, int *res); 816 int vop_markatime(struct vop_ops *ops, struct vnode *vp, struct ucred *cred); 817 int vop_nresolve(struct vop_ops *ops, struct nchandle *nch, 818 struct vnode *dvp, struct ucred *cred); 819 int vop_nlookupdotdot(struct vop_ops *ops, struct vnode *dvp, 820 struct vnode **vpp, struct ucred *cred, char **fakename); 821 int vop_ncreate(struct vop_ops *ops, struct nchandle *nch, struct vnode *dvp, 822 struct vnode **vpp, struct ucred *cred, struct vattr *vap); 823 int vop_nmkdir(struct vop_ops *ops, struct nchandle *nch, struct vnode *dvp, 824 struct vnode **vpp, struct ucred *cred, struct vattr *vap); 825 int vop_nmknod(struct vop_ops *ops, struct nchandle *nch, struct vnode *dvp, 826 struct vnode **vpp, struct ucred *cred, struct vattr *vap); 827 int vop_nlink(struct vop_ops *ops, struct nchandle *nch, struct vnode *dvp, 828 struct vnode *vp, struct ucred *cred); 829 int vop_nsymlink(struct vop_ops *ops, struct nchandle *nch, struct vnode *dvp, 830 struct vnode **vpp, struct ucred *cred, 831 struct vattr *vap, char *target); 832 int vop_nwhiteout(struct vop_ops *ops, struct nchandle *nch, struct vnode *dvp, 833 struct ucred *cred, int flags); 834 int vop_nremove(struct vop_ops *ops, struct nchandle *nch, struct vnode *dvp, 835 struct ucred *cred); 836 int vop_nrmdir(struct vop_ops *ops, struct nchandle *nch, struct vnode *dvp, 837 struct ucred *cred); 838 int vop_nrename(struct vop_ops *ops, 839 struct nchandle *fnch, struct nchandle *tnch, 840 struct vnode *fdvp, struct vnode *tdvp, 841 struct ucred *cred); 842 843 /* 844 * Kernel VOP forwarding wrappers. These are called when a VFS such as 845 * nullfs or unionfs needs to push down into another VFS, changing the 846 * a_ops pointer and consequentially necessitating additional 847 * cache management. 848 * 849 * Note that this is different from vop_ops chaining within the same 850 * filesystem. When a filesystem chains a vop_ops it just uses VOCALLs. 851 */ 852 int vop_vnoperate_ap(struct vop_generic_args *ap); 853 int vop_cache_operate_ap(struct vop_generic_args *ap); 854 int vop_journal_operate_ap(struct vop_generic_args *ap); 855 int vop_old_lookup_ap(struct vop_old_lookup_args *ap); 856 int vop_old_create_ap(struct vop_old_create_args *ap); 857 int vop_old_whiteout_ap(struct vop_old_whiteout_args *ap); 858 int vop_old_mknod_ap(struct vop_old_mknod_args *ap); 859 int vop_open_ap(struct vop_open_args *ap); 860 int vop_close_ap(struct vop_close_args *ap); 861 int vop_access_ap(struct vop_access_args *ap); 862 int vop_getattr_ap(struct vop_getattr_args *ap); 863 int vop_setattr_ap(struct vop_setattr_args *ap); 864 int vop_read_ap(struct vop_read_args *ap); 865 int vop_write_ap(struct vop_write_args *ap); 866 int vop_ioctl_ap(struct vop_ioctl_args *ap); 867 int vop_poll_ap(struct vop_poll_args *ap); 868 int vop_kqfilter_ap(struct vop_kqfilter_args *ap); 869 int vop_mmap_ap(struct vop_mmap_args *ap); 870 int vop_fsync_ap(struct vop_fsync_args *ap); 871 int vop_old_remove_ap(struct vop_old_remove_args *ap); 872 int vop_old_link_ap(struct vop_old_link_args *ap); 873 int vop_old_rename_ap(struct vop_old_rename_args *ap); 874 int vop_old_mkdir_ap(struct vop_old_mkdir_args *ap); 875 int vop_old_rmdir_ap(struct vop_old_rmdir_args *ap); 876 int vop_old_symlink_ap(struct vop_old_symlink_args *ap); 877 int vop_readdir_ap(struct vop_readdir_args *ap); 878 int vop_readlink_ap(struct vop_readlink_args *ap); 879 int vop_inactive_ap(struct vop_inactive_args *ap); 880 int vop_reclaim_ap(struct vop_reclaim_args *ap); 881 int vop_bmap_ap(struct vop_bmap_args *ap); 882 int vop_strategy_ap(struct vop_strategy_args *ap); 883 int vop_print_ap(struct vop_print_args *ap); 884 int vop_pathconf_ap(struct vop_pathconf_args *ap); 885 int vop_advlock_ap(struct vop_advlock_args *ap); 886 int vop_balloc_ap(struct vop_balloc_args *ap); 887 int vop_reallocblks_ap(struct vop_reallocblks_args *ap); 888 int vop_getpages_ap(struct vop_getpages_args *ap); 889 int vop_putpages_ap(struct vop_putpages_args *ap); 890 int vop_freeblks_ap(struct vop_freeblks_args *ap); 891 int vop_getacl_ap(struct vop_getacl_args *ap); 892 int vop_setacl_ap(struct vop_setacl_args *ap); 893 int vop_aclcheck_ap(struct vop_aclcheck_args *ap); 894 int vop_getextattr_ap(struct vop_getextattr_args *ap); 895 int vop_setextattr_ap(struct vop_setextattr_args *ap); 896 int vop_mountctl_ap(struct vop_mountctl_args *ap); 897 int vop_markatime_ap(struct vop_markatime_args *ap); 898 899 int vop_nresolve_ap(struct vop_nresolve_args *ap); 900 int vop_nlookupdotdot_ap(struct vop_nlookupdotdot_args *ap); 901 int vop_ncreate_ap(struct vop_ncreate_args *ap); 902 int vop_nmkdir_ap(struct vop_nmkdir_args *ap); 903 int vop_nmknod_ap(struct vop_nmknod_args *ap); 904 int vop_nlink_ap(struct vop_nlink_args *ap); 905 int vop_nsymlink_ap(struct vop_nsymlink_args *ap); 906 int vop_nwhiteout_ap(struct vop_nwhiteout_args *ap); 907 int vop_nremove_ap(struct vop_nremove_args *ap); 908 int vop_nrmdir_ap(struct vop_nrmdir_args *ap); 909 int vop_nrename_ap(struct vop_nrename_args *ap); 910 911 /* 912 * VOP operations descriptor. This is used by the vop_ops compiler 913 * to convert VFS vector arrays (typically in vfs/blah/blah_vnops.c) 914 * into a vop_ops operations vector. 915 */ 916 extern struct syslink_desc vop_default_desc; 917 extern struct syslink_desc vop_old_lookup_desc; 918 extern struct syslink_desc vop_old_create_desc; 919 extern struct syslink_desc vop_old_whiteout_desc; 920 extern struct syslink_desc vop_old_mknod_desc; 921 extern struct syslink_desc vop_open_desc; 922 extern struct syslink_desc vop_close_desc; 923 extern struct syslink_desc vop_access_desc; 924 extern struct syslink_desc vop_getattr_desc; 925 extern struct syslink_desc vop_setattr_desc; 926 extern struct syslink_desc vop_read_desc; 927 extern struct syslink_desc vop_write_desc; 928 extern struct syslink_desc vop_ioctl_desc; 929 extern struct syslink_desc vop_poll_desc; 930 extern struct syslink_desc vop_kqfilter_desc; 931 extern struct syslink_desc vop_mmap_desc; 932 extern struct syslink_desc vop_fsync_desc; 933 extern struct syslink_desc vop_old_remove_desc; 934 extern struct syslink_desc vop_old_link_desc; 935 extern struct syslink_desc vop_old_rename_desc; 936 extern struct syslink_desc vop_old_mkdir_desc; 937 extern struct syslink_desc vop_old_rmdir_desc; 938 extern struct syslink_desc vop_old_symlink_desc; 939 extern struct syslink_desc vop_readdir_desc; 940 extern struct syslink_desc vop_readlink_desc; 941 extern struct syslink_desc vop_inactive_desc; 942 extern struct syslink_desc vop_reclaim_desc; 943 extern struct syslink_desc vop_bmap_desc; 944 extern struct syslink_desc vop_strategy_desc; 945 extern struct syslink_desc vop_print_desc; 946 extern struct syslink_desc vop_pathconf_desc; 947 extern struct syslink_desc vop_advlock_desc; 948 extern struct syslink_desc vop_balloc_desc; 949 extern struct syslink_desc vop_reallocblks_desc; 950 extern struct syslink_desc vop_getpages_desc; 951 extern struct syslink_desc vop_putpages_desc; 952 extern struct syslink_desc vop_freeblks_desc; 953 extern struct syslink_desc vop_getacl_desc; 954 extern struct syslink_desc vop_setacl_desc; 955 extern struct syslink_desc vop_aclcheck_desc; 956 extern struct syslink_desc vop_getextattr_desc; 957 extern struct syslink_desc vop_setextattr_desc; 958 extern struct syslink_desc vop_mountctl_desc; 959 extern struct syslink_desc vop_markatime_desc; 960 961 extern struct syslink_desc vop_nresolve_desc; 962 extern struct syslink_desc vop_nlookupdotdot_desc; 963 extern struct syslink_desc vop_ncreate_desc; 964 extern struct syslink_desc vop_nmkdir_desc; 965 extern struct syslink_desc vop_nmknod_desc; 966 extern struct syslink_desc vop_nlink_desc; 967 extern struct syslink_desc vop_nsymlink_desc; 968 extern struct syslink_desc vop_nwhiteout_desc; 969 extern struct syslink_desc vop_nremove_desc; 970 extern struct syslink_desc vop_nrmdir_desc; 971 extern struct syslink_desc vop_nrename_desc; 972 973 #endif 974 975 /* 976 * VOP_*() convenience macros extract the operations vector and make the 977 * vop_*() call. 978 */ 979 #define VOP_OPEN(vp, mode, cred, fp) \ 980 vop_open(*(vp)->v_ops, vp, mode, cred, fp) 981 #define VOP_CLOSE(vp, fflag) \ 982 vop_close(*(vp)->v_ops, vp, fflag) 983 #define VOP_ACCESS(vp, mode, cred) \ 984 vop_access(*(vp)->v_ops, vp, mode, 0, cred) 985 #define VOP_EACCESS(vp, mode, cred) \ 986 vop_access(*(vp)->v_ops, vp, mode, AT_EACCESS, cred) 987 #define VOP_ACCESS_FLAGS(vp, mode, flags, cred) \ 988 vop_access(*(vp)->v_ops, vp, mode, flags, cred) 989 #define VOP_GETATTR(vp, vap) \ 990 vop_getattr(*(vp)->v_ops, vp, vap) 991 #define VOP_SETATTR(vp, vap, cred) \ 992 vop_setattr(*(vp)->v_ops, vp, vap, cred) 993 #define VOP_READ(vp, uio, ioflag, cred) \ 994 vop_read(*(vp)->v_ops, vp, uio, ioflag, cred) 995 #define VOP_WRITE(vp, uio, ioflag, cred) \ 996 vop_write(*(vp)->v_ops, vp, uio, ioflag, cred) 997 #define VOP_IOCTL(vp, command, data, fflag, cred, msg) \ 998 vop_ioctl(*(vp)->v_ops, vp, command, data, fflag, cred, msg) 999 #define VOP_POLL(vp, events, cred) \ 1000 vop_poll(*(vp)->v_ops, vp, events, cred) 1001 #define VOP_KQFILTER(vp, kn) \ 1002 vop_kqfilter(*(vp)->v_ops, vp, kn) 1003 #define VOP_MMAP(vp, fflags, cred) \ 1004 vop_mmap(*(vp)->v_ops, vp, fflags, cred) 1005 #define VOP_FSYNC(vp, waitfor, flags) \ 1006 vop_fsync(*(vp)->v_ops, vp, waitfor, flags) 1007 #define VOP_READDIR(vp, uio, cred, eofflag, ncookies, cookies) \ 1008 vop_readdir(*(vp)->v_ops, vp, uio, cred, eofflag, ncookies, cookies) 1009 #define VOP_READLINK(vp, uio, cred) \ 1010 vop_readlink(*(vp)->v_ops, vp, uio, cred) 1011 #define VOP_INACTIVE(vp) \ 1012 vop_inactive(*(vp)->v_ops, vp) 1013 #define VOP_RECLAIM(vp) \ 1014 vop_reclaim(*(vp)->v_ops, vp) 1015 #define VOP_BMAP(vp, loff, doffp, runp, runb, cmd) \ 1016 vop_bmap(*(vp)->v_ops, vp, loff, doffp, runp, runb, cmd) 1017 #define VOP_PRINT(vp) \ 1018 vop_print(*(vp)->v_ops, vp) 1019 #define VOP_PATHCONF(vp, name, retval) \ 1020 vop_pathconf(*(vp)->v_ops, vp, name, retval) 1021 #define VOP_ADVLOCK(vp, id, op, fl, flags) \ 1022 vop_advlock(*(vp)->v_ops, vp, id, op, fl, flags) 1023 #define VOP_BALLOC(vp, offset, size, cred, flags, bpp) \ 1024 vop_balloc(*(vp)->v_ops, vp, offset, size, cred, flags, bpp) 1025 #define VOP_REALLOCBLKS(vp, buflist) \ 1026 vop_reallocblks(*(vp)->v_ops, vp, buflist) 1027 #define VOP_GETPAGES(vp, m, count, reqpage, off, seqaccess) \ 1028 vop_getpages(*(vp)->v_ops, vp, m, count, reqpage, off, seqaccess) 1029 #define VOP_PUTPAGES(vp, m, count, sync, rtvals, off) \ 1030 vop_putpages(*(vp)->v_ops, vp, m, count, sync, rtvals, off) 1031 #define VOP_FREEBLKS(vp, offset, length) \ 1032 vop_freeblks(*(vp)->v_ops, vp, offset, length) 1033 #define VOP_GETACL(vp, type, aclp, cred) \ 1034 vop_getacl(*(vp)->v_ops, vp, type, aclp, cred) 1035 #define VOP_SETACL(vp, type, aclp, cred) \ 1036 vop_setacl(*(vp)->v_ops, vp, type, aclp, cred) 1037 #define VOP_ACLCHECK(vp, type, aclp, cred) \ 1038 vop_aclcheck(*(vp)->v_ops, vp, type, aclp, cred) 1039 #define VOP_GETEXTATTR(vp, name, uio, cred) \ 1040 vop_getextattr(*(vp)->v_ops, vp, name, uio, cred) 1041 #define VOP_SETEXTATTR(vp, name, uio, cred) \ 1042 vop_setextattr(*(vp)->v_ops, vp, name, uio, cred) 1043 #define VOP_MARKATIME(vp, cred) \ 1044 vop_markatime(*(vp)->v_ops, vp, cred) 1045 /* no VOP_VFSSET() */ 1046 /* VOP_STRATEGY - does not exist, use vn_strategy() */ 1047 1048 /* 1049 * 'OLD' VOP calls. These calls may only be made by the new API 1050 * compatibility functions in kern/vfs_default.c. Attempting to 1051 * call these functions directly will confuse the namecache. These 1052 * calls are deprecated and being removed from the system and from 1053 * the VFS's. 1054 */ 1055 #define VOP_OLD_LOOKUP(dvp, vpp, cnp) \ 1056 vop_old_lookup(*(dvp)->v_ops, dvp, vpp, cnp) 1057 #define VOP_OLD_CREATE(dvp, vpp, cnp, vap) \ 1058 vop_old_create(*(dvp)->v_ops, dvp, vpp, cnp, vap) 1059 #define VOP_OLD_MKDIR(dvp, vpp, cnp, vap) \ 1060 vop_old_mkdir(*(dvp)->v_ops, dvp, vpp, cnp, vap) 1061 #define VOP_OLD_MKNOD(dvp, vpp, cnp, vap) \ 1062 vop_old_mknod(*(dvp)->v_ops, dvp, vpp, cnp, vap) 1063 #define VOP_OLD_LINK(tdvp, vp, cnp) \ 1064 vop_old_link(*(tdvp)->v_ops, tdvp, vp, cnp) 1065 #define VOP_OLD_SYMLINK(dvp, vpp, cnp, vap, target) \ 1066 vop_old_symlink(*(dvp)->v_ops, dvp, vpp, cnp, vap, target) 1067 #define VOP_OLD_WHITEOUT(dvp, cnp, flags) \ 1068 vop_old_whiteout(*(dvp)->v_ops, dvp, cnp, flags) 1069 #define VOP_OLD_RENAME(fdvp, fvp, fcnp, tdvp, tvp, tcnp) \ 1070 vop_old_rename(*(fdvp)->v_ops, fdvp, fvp, fcnp, tdvp, tvp, tcnp) 1071 #define VOP_OLD_RMDIR(dvp, vp, cnp) \ 1072 vop_old_rmdir(*(dvp)->v_ops, dvp, vp, cnp) 1073 #define VOP_OLD_REMOVE(dvp, vp, cnp) \ 1074 vop_old_remove(*(dvp)->v_ops, dvp, vp, cnp) 1075 1076 /* 1077 * 'NEW' VOP calls. These calls use namespaces as an operational basis 1078 * rather then vnodes and replace the OLD calls. Eventually all VFS's 1079 * will support these calls. Those that do not fall through to compatibility 1080 * code in kern/vfs_default which does the magic required to call the old 1081 * routines. 1082 */ 1083 #define VOP_NRESOLVE(nch, dvp, cred) \ 1084 vop_nresolve((nch)->mount->mnt_vn_use_ops, nch, dvp, cred) 1085 #define VOP_NLOOKUPDOTDOT(dvp, vpp, cred, fakename) \ 1086 vop_nlookupdotdot(*(dvp)->v_ops, dvp, vpp, cred, fakename) 1087 #define VOP_NCREATE(nch, dvp, vpp, cred, vap) \ 1088 vop_ncreate((nch)->mount->mnt_vn_use_ops, nch, dvp, vpp, cred, vap) 1089 #define VOP_NMKDIR(nch, dvp, vpp, cred, vap) \ 1090 vop_nmkdir((nch)->mount->mnt_vn_use_ops, nch, dvp, vpp, cred, vap) 1091 #define VOP_NMKNOD(nch, dvp, vpp, cred, vap) \ 1092 vop_nmknod((nch)->mount->mnt_vn_use_ops, nch, dvp, vpp, cred, vap) 1093 #define VOP_NLINK(nch, dvp, vp, cred) \ 1094 vop_nlink((nch)->mount->mnt_vn_use_ops, nch, dvp, vp, cred) 1095 #define VOP_NSYMLINK(nch, dvp, vpp, cred, vap, target) \ 1096 vop_nsymlink((nch)->mount->mnt_vn_use_ops, nch, dvp, vpp, cred, vap, target) 1097 #define VOP_NWHITEOUT(nch, dvp, cred, flags) \ 1098 vop_nwhiteout((nch)->mount->mnt_vn_use_ops, nch, dvp, cred, flags) 1099 #define VOP_NRENAME(fnch, tnch, fdvp, tdvp, cred) \ 1100 vop_nrename((fnch)->mount->mnt_vn_use_ops, fnch, tnch, fdvp, tdvp, cred) 1101 #define VOP_NRMDIR(nch, dvp, cred) \ 1102 vop_nrmdir((nch)->mount->mnt_vn_use_ops, nch, dvp, cred) 1103 #define VOP_NREMOVE(nch, dvp, cred) \ 1104 vop_nremove((nch)->mount->mnt_vn_use_ops, nch, dvp, cred) 1105 1106 #endif 1107 1108