-
Notifications
You must be signed in to change notification settings - Fork 1
/
vnode_if.h
2606 lines (2153 loc) · 55.8 KB
/
vnode_if.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* This file is @generated automatically.
* Do not modify anything in here by hand.
*/
extern struct vnodeop_desc vop_default_desc;
#include "vnode_if_typedef.h"
#include "vnode_if_newproto.h"
struct vop_islocked_args {
struct vop_generic_args a_gen;
struct vnode *a_vp;
};
extern struct vnodeop_desc vop_islocked_desc;
int VOP_ISLOCKED_AP(struct vop_islocked_args *);
int VOP_ISLOCKED_APV(struct vop_vector *vop, struct vop_islocked_args *);
static __inline int VOP_ISLOCKED(
struct vnode *vp)
{
struct vop_islocked_args a;
a.a_gen.a_desc = &vop_islocked_desc;
a.a_vp = vp;
#if !defined(DEBUG_VFS_LOCKS) && !defined(INVARIANTS) && !defined(KTR)
if (!SDT_PROBES_ENABLED())
return (vp->v_op->vop_islocked(&a));
else
return (VOP_ISLOCKED_APV(vp->v_op, &a));
#else
return (VOP_ISLOCKED_APV(vp->v_op, &a));
#endif
}
struct vop_lookup_args {
struct vop_generic_args a_gen;
struct vnode *a_dvp;
struct vnode **a_vpp;
struct componentname *a_cnp;
};
extern struct vnodeop_desc vop_lookup_desc;
int VOP_LOOKUP_AP(struct vop_lookup_args *);
int VOP_LOOKUP_APV(struct vop_vector *vop, struct vop_lookup_args *);
static __inline int VOP_LOOKUP(
struct vnode *dvp,
struct vnode **vpp,
struct componentname *cnp)
{
struct vop_lookup_args a;
a.a_gen.a_desc = &vop_lookup_desc;
a.a_dvp = dvp;
a.a_vpp = vpp;
a.a_cnp = cnp;
#if !defined(DEBUG_VFS_LOCKS) && !defined(INVARIANTS) && !defined(KTR)
if (!SDT_PROBES_ENABLED())
return (dvp->v_op->vop_lookup(&a));
else
return (VOP_LOOKUP_APV(dvp->v_op, &a));
#else
return (VOP_LOOKUP_APV(dvp->v_op, &a));
#endif
}
struct vop_cachedlookup_args {
struct vop_generic_args a_gen;
struct vnode *a_dvp;
struct vnode **a_vpp;
struct componentname *a_cnp;
};
extern struct vnodeop_desc vop_cachedlookup_desc;
int VOP_CACHEDLOOKUP_AP(struct vop_cachedlookup_args *);
int VOP_CACHEDLOOKUP_APV(struct vop_vector *vop, struct vop_cachedlookup_args *);
static __inline int VOP_CACHEDLOOKUP(
struct vnode *dvp,
struct vnode **vpp,
struct componentname *cnp)
{
struct vop_cachedlookup_args a;
a.a_gen.a_desc = &vop_cachedlookup_desc;
a.a_dvp = dvp;
a.a_vpp = vpp;
a.a_cnp = cnp;
#if !defined(DEBUG_VFS_LOCKS) && !defined(INVARIANTS) && !defined(KTR)
if (!SDT_PROBES_ENABLED())
return (dvp->v_op->vop_cachedlookup(&a));
else
return (VOP_CACHEDLOOKUP_APV(dvp->v_op, &a));
#else
return (VOP_CACHEDLOOKUP_APV(dvp->v_op, &a));
#endif
}
struct vop_create_args {
struct vop_generic_args a_gen;
struct vnode *a_dvp;
struct vnode **a_vpp;
struct componentname *a_cnp;
struct vattr *a_vap;
};
extern struct vnodeop_desc vop_create_desc;
int VOP_CREATE_AP(struct vop_create_args *);
int VOP_CREATE_APV(struct vop_vector *vop, struct vop_create_args *);
static __inline int VOP_CREATE(
struct vnode *dvp,
struct vnode **vpp,
struct componentname *cnp,
struct vattr *vap)
{
struct vop_create_args a;
a.a_gen.a_desc = &vop_create_desc;
a.a_dvp = dvp;
a.a_vpp = vpp;
a.a_cnp = cnp;
a.a_vap = vap;
return (VOP_CREATE_APV(dvp->v_op, &a));
}
struct vop_whiteout_args {
struct vop_generic_args a_gen;
struct vnode *a_dvp;
struct componentname *a_cnp;
int a_flags;
};
extern struct vnodeop_desc vop_whiteout_desc;
int VOP_WHITEOUT_AP(struct vop_whiteout_args *);
int VOP_WHITEOUT_APV(struct vop_vector *vop, struct vop_whiteout_args *);
static __inline int VOP_WHITEOUT(
struct vnode *dvp,
struct componentname *cnp,
int flags)
{
struct vop_whiteout_args a;
a.a_gen.a_desc = &vop_whiteout_desc;
a.a_dvp = dvp;
a.a_cnp = cnp;
a.a_flags = flags;
return (VOP_WHITEOUT_APV(dvp->v_op, &a));
}
struct vop_mknod_args {
struct vop_generic_args a_gen;
struct vnode *a_dvp;
struct vnode **a_vpp;
struct componentname *a_cnp;
struct vattr *a_vap;
};
extern struct vnodeop_desc vop_mknod_desc;
int VOP_MKNOD_AP(struct vop_mknod_args *);
int VOP_MKNOD_APV(struct vop_vector *vop, struct vop_mknod_args *);
static __inline int VOP_MKNOD(
struct vnode *dvp,
struct vnode **vpp,
struct componentname *cnp,
struct vattr *vap)
{
struct vop_mknod_args a;
a.a_gen.a_desc = &vop_mknod_desc;
a.a_dvp = dvp;
a.a_vpp = vpp;
a.a_cnp = cnp;
a.a_vap = vap;
return (VOP_MKNOD_APV(dvp->v_op, &a));
}
struct vop_open_args {
struct vop_generic_args a_gen;
struct vnode *a_vp;
int a_mode;
struct ucred *a_cred;
struct thread *a_td;
struct file *a_fp;
};
extern struct vnodeop_desc vop_open_desc;
int VOP_OPEN_AP(struct vop_open_args *);
int VOP_OPEN_APV(struct vop_vector *vop, struct vop_open_args *);
static __inline int VOP_OPEN(
struct vnode *vp,
int mode,
struct ucred *cred,
struct thread *td,
struct file *fp)
{
struct vop_open_args a;
a.a_gen.a_desc = &vop_open_desc;
a.a_vp = vp;
a.a_mode = mode;
a.a_cred = cred;
a.a_td = td;
a.a_fp = fp;
return (VOP_OPEN_APV(vp->v_op, &a));
}
struct vop_close_args {
struct vop_generic_args a_gen;
struct vnode *a_vp;
int a_fflag;
struct ucred *a_cred;
struct thread *a_td;
};
extern struct vnodeop_desc vop_close_desc;
int VOP_CLOSE_AP(struct vop_close_args *);
int VOP_CLOSE_APV(struct vop_vector *vop, struct vop_close_args *);
static __inline int VOP_CLOSE(
struct vnode *vp,
int fflag,
struct ucred *cred,
struct thread *td)
{
struct vop_close_args a;
a.a_gen.a_desc = &vop_close_desc;
a.a_vp = vp;
a.a_fflag = fflag;
a.a_cred = cred;
a.a_td = td;
return (VOP_CLOSE_APV(vp->v_op, &a));
}
struct vop_fplookup_vexec_args {
struct vop_generic_args a_gen;
struct vnode *a_vp;
struct ucred *a_cred;
};
extern struct vnodeop_desc vop_fplookup_vexec_desc;
int VOP_FPLOOKUP_VEXEC_AP(struct vop_fplookup_vexec_args *);
int VOP_FPLOOKUP_VEXEC_APV(struct vop_vector *vop, struct vop_fplookup_vexec_args *);
static __inline int VOP_FPLOOKUP_VEXEC(
struct vnode *vp,
struct ucred *cred)
{
struct vop_fplookup_vexec_args a;
a.a_gen.a_desc = &vop_fplookup_vexec_desc;
a.a_vp = vp;
a.a_cred = cred;
#if !defined(DEBUG_VFS_LOCKS) && !defined(INVARIANTS) && !defined(KTR)
if (!SDT_PROBES_ENABLED())
return (vp->v_op->vop_fplookup_vexec(&a));
else
return (VOP_FPLOOKUP_VEXEC_APV(vp->v_op, &a));
#else
return (VOP_FPLOOKUP_VEXEC_APV(vp->v_op, &a));
#endif
}
struct vop_fplookup_symlink_args {
struct vop_generic_args a_gen;
struct vnode *a_vp;
struct cache_fpl *a_fpl;
};
extern struct vnodeop_desc vop_fplookup_symlink_desc;
int VOP_FPLOOKUP_SYMLINK_AP(struct vop_fplookup_symlink_args *);
int VOP_FPLOOKUP_SYMLINK_APV(struct vop_vector *vop, struct vop_fplookup_symlink_args *);
static __inline int VOP_FPLOOKUP_SYMLINK(
struct vnode *vp,
struct cache_fpl *fpl)
{
struct vop_fplookup_symlink_args a;
a.a_gen.a_desc = &vop_fplookup_symlink_desc;
a.a_vp = vp;
a.a_fpl = fpl;
#if !defined(DEBUG_VFS_LOCKS) && !defined(INVARIANTS) && !defined(KTR)
if (!SDT_PROBES_ENABLED())
return (vp->v_op->vop_fplookup_symlink(&a));
else
return (VOP_FPLOOKUP_SYMLINK_APV(vp->v_op, &a));
#else
return (VOP_FPLOOKUP_SYMLINK_APV(vp->v_op, &a));
#endif
}
struct vop_access_args {
struct vop_generic_args a_gen;
struct vnode *a_vp;
accmode_t a_accmode;
struct ucred *a_cred;
struct thread *a_td;
};
extern struct vnodeop_desc vop_access_desc;
int VOP_ACCESS_AP(struct vop_access_args *);
int VOP_ACCESS_APV(struct vop_vector *vop, struct vop_access_args *);
static __inline int VOP_ACCESS(
struct vnode *vp,
accmode_t accmode,
struct ucred *cred,
struct thread *td)
{
struct vop_access_args a;
a.a_gen.a_desc = &vop_access_desc;
a.a_vp = vp;
a.a_accmode = accmode;
a.a_cred = cred;
a.a_td = td;
#if !defined(DEBUG_VFS_LOCKS) && !defined(INVARIANTS) && !defined(KTR)
if (!SDT_PROBES_ENABLED())
return (vp->v_op->vop_access(&a));
else
return (VOP_ACCESS_APV(vp->v_op, &a));
#else
return (VOP_ACCESS_APV(vp->v_op, &a));
#endif
}
struct vop_accessx_args {
struct vop_generic_args a_gen;
struct vnode *a_vp;
accmode_t a_accmode;
struct ucred *a_cred;
struct thread *a_td;
};
extern struct vnodeop_desc vop_accessx_desc;
int VOP_ACCESSX_AP(struct vop_accessx_args *);
int VOP_ACCESSX_APV(struct vop_vector *vop, struct vop_accessx_args *);
static __inline int VOP_ACCESSX(
struct vnode *vp,
accmode_t accmode,
struct ucred *cred,
struct thread *td)
{
struct vop_accessx_args a;
a.a_gen.a_desc = &vop_accessx_desc;
a.a_vp = vp;
a.a_accmode = accmode;
a.a_cred = cred;
a.a_td = td;
#if !defined(DEBUG_VFS_LOCKS) && !defined(INVARIANTS) && !defined(KTR)
if (!SDT_PROBES_ENABLED())
return (vp->v_op->vop_accessx(&a));
else
return (VOP_ACCESSX_APV(vp->v_op, &a));
#else
return (VOP_ACCESSX_APV(vp->v_op, &a));
#endif
}
struct vop_stat_args {
struct vop_generic_args a_gen;
struct vnode *a_vp;
struct stat *a_sb;
struct ucred *a_active_cred;
struct ucred *a_file_cred;
};
extern struct vnodeop_desc vop_stat_desc;
int VOP_STAT_AP(struct vop_stat_args *);
int VOP_STAT_APV(struct vop_vector *vop, struct vop_stat_args *);
static __inline int VOP_STAT(
struct vnode *vp,
struct stat *sb,
struct ucred *active_cred,
struct ucred *file_cred)
{
struct vop_stat_args a;
a.a_gen.a_desc = &vop_stat_desc;
a.a_vp = vp;
a.a_sb = sb;
a.a_active_cred = active_cred;
a.a_file_cred = file_cred;
#if !defined(DEBUG_VFS_LOCKS) && !defined(INVARIANTS) && !defined(KTR)
if (!SDT_PROBES_ENABLED())
return (vp->v_op->vop_stat(&a));
else
return (VOP_STAT_APV(vp->v_op, &a));
#else
return (VOP_STAT_APV(vp->v_op, &a));
#endif
}
struct vop_getattr_args {
struct vop_generic_args a_gen;
struct vnode *a_vp;
struct vattr *a_vap;
struct ucred *a_cred;
};
extern struct vnodeop_desc vop_getattr_desc;
int VOP_GETATTR_AP(struct vop_getattr_args *);
int VOP_GETATTR_APV(struct vop_vector *vop, struct vop_getattr_args *);
static __inline int VOP_GETATTR(
struct vnode *vp,
struct vattr *vap,
struct ucred *cred)
{
struct vop_getattr_args a;
a.a_gen.a_desc = &vop_getattr_desc;
a.a_vp = vp;
a.a_vap = vap;
a.a_cred = cred;
#if !defined(DEBUG_VFS_LOCKS) && !defined(INVARIANTS) && !defined(KTR)
if (!SDT_PROBES_ENABLED())
return (vp->v_op->vop_getattr(&a));
else
return (VOP_GETATTR_APV(vp->v_op, &a));
#else
return (VOP_GETATTR_APV(vp->v_op, &a));
#endif
}
struct vop_setattr_args {
struct vop_generic_args a_gen;
struct vnode *a_vp;
struct vattr *a_vap;
struct ucred *a_cred;
};
extern struct vnodeop_desc vop_setattr_desc;
int VOP_SETATTR_AP(struct vop_setattr_args *);
int VOP_SETATTR_APV(struct vop_vector *vop, struct vop_setattr_args *);
static __inline int VOP_SETATTR(
struct vnode *vp,
struct vattr *vap,
struct ucred *cred)
{
struct vop_setattr_args a;
a.a_gen.a_desc = &vop_setattr_desc;
a.a_vp = vp;
a.a_vap = vap;
a.a_cred = cred;
return (VOP_SETATTR_APV(vp->v_op, &a));
}
struct vop_mmapped_args {
struct vop_generic_args a_gen;
struct vnode *a_vp;
};
extern struct vnodeop_desc vop_mmapped_desc;
int VOP_MMAPPED_AP(struct vop_mmapped_args *);
int VOP_MMAPPED_APV(struct vop_vector *vop, struct vop_mmapped_args *);
static __inline int VOP_MMAPPED(
struct vnode *vp)
{
struct vop_mmapped_args a;
a.a_gen.a_desc = &vop_mmapped_desc;
a.a_vp = vp;
#if !defined(DEBUG_VFS_LOCKS) && !defined(INVARIANTS) && !defined(KTR)
if (!SDT_PROBES_ENABLED())
return (vp->v_op->vop_mmapped(&a));
else
return (VOP_MMAPPED_APV(vp->v_op, &a));
#else
return (VOP_MMAPPED_APV(vp->v_op, &a));
#endif
}
struct vop_read_args {
struct vop_generic_args a_gen;
struct vnode *a_vp;
struct uio *a_uio;
int a_ioflag;
struct ucred *a_cred;
};
extern struct vnodeop_desc vop_read_desc;
int VOP_READ_AP(struct vop_read_args *);
int VOP_READ_APV(struct vop_vector *vop, struct vop_read_args *);
static __inline int VOP_READ(
struct vnode *vp,
struct uio *uio,
int ioflag,
struct ucred *cred)
{
struct vop_read_args a;
a.a_gen.a_desc = &vop_read_desc;
a.a_vp = vp;
a.a_uio = uio;
a.a_ioflag = ioflag;
a.a_cred = cred;
return (VOP_READ_APV(vp->v_op, &a));
}
struct vop_read_pgcache_args {
struct vop_generic_args a_gen;
struct vnode *a_vp;
struct uio *a_uio;
int a_ioflag;
struct ucred *a_cred;
};
extern struct vnodeop_desc vop_read_pgcache_desc;
int VOP_READ_PGCACHE_AP(struct vop_read_pgcache_args *);
int VOP_READ_PGCACHE_APV(struct vop_vector *vop, struct vop_read_pgcache_args *);
static __inline int VOP_READ_PGCACHE(
struct vnode *vp,
struct uio *uio,
int ioflag,
struct ucred *cred)
{
struct vop_read_pgcache_args a;
a.a_gen.a_desc = &vop_read_pgcache_desc;
a.a_vp = vp;
a.a_uio = uio;
a.a_ioflag = ioflag;
a.a_cred = cred;
return (VOP_READ_PGCACHE_APV(vp->v_op, &a));
}
struct vop_write_args {
struct vop_generic_args a_gen;
struct vnode *a_vp;
struct uio *a_uio;
int a_ioflag;
struct ucred *a_cred;
};
extern struct vnodeop_desc vop_write_desc;
int VOP_WRITE_AP(struct vop_write_args *);
int VOP_WRITE_APV(struct vop_vector *vop, struct vop_write_args *);
static __inline int VOP_WRITE(
struct vnode *vp,
struct uio *uio,
int ioflag,
struct ucred *cred)
{
struct vop_write_args a;
a.a_gen.a_desc = &vop_write_desc;
a.a_vp = vp;
a.a_uio = uio;
a.a_ioflag = ioflag;
a.a_cred = cred;
return (VOP_WRITE_APV(vp->v_op, &a));
}
struct vop_ioctl_args {
struct vop_generic_args a_gen;
struct vnode *a_vp;
u_long a_command;
void *a_data;
int a_fflag;
struct ucred *a_cred;
struct thread *a_td;
};
extern struct vnodeop_desc vop_ioctl_desc;
int VOP_IOCTL_AP(struct vop_ioctl_args *);
int VOP_IOCTL_APV(struct vop_vector *vop, struct vop_ioctl_args *);
static __inline int VOP_IOCTL(
struct vnode *vp,
u_long command,
void *data,
int fflag,
struct ucred *cred,
struct thread *td)
{
struct vop_ioctl_args a;
a.a_gen.a_desc = &vop_ioctl_desc;
a.a_vp = vp;
a.a_command = command;
a.a_data = data;
a.a_fflag = fflag;
a.a_cred = cred;
a.a_td = td;
#if !defined(DEBUG_VFS_LOCKS) && !defined(INVARIANTS) && !defined(KTR)
if (!SDT_PROBES_ENABLED())
return (vp->v_op->vop_ioctl(&a));
else
return (VOP_IOCTL_APV(vp->v_op, &a));
#else
return (VOP_IOCTL_APV(vp->v_op, &a));
#endif
}
struct vop_poll_args {
struct vop_generic_args a_gen;
struct vnode *a_vp;
int a_events;
struct ucred *a_cred;
struct thread *a_td;
};
extern struct vnodeop_desc vop_poll_desc;
int VOP_POLL_AP(struct vop_poll_args *);
int VOP_POLL_APV(struct vop_vector *vop, struct vop_poll_args *);
static __inline int VOP_POLL(
struct vnode *vp,
int events,
struct ucred *cred,
struct thread *td)
{
struct vop_poll_args a;
a.a_gen.a_desc = &vop_poll_desc;
a.a_vp = vp;
a.a_events = events;
a.a_cred = cred;
a.a_td = td;
#if !defined(DEBUG_VFS_LOCKS) && !defined(INVARIANTS) && !defined(KTR)
if (!SDT_PROBES_ENABLED())
return (vp->v_op->vop_poll(&a));
else
return (VOP_POLL_APV(vp->v_op, &a));
#else
return (VOP_POLL_APV(vp->v_op, &a));
#endif
}
struct vop_kqfilter_args {
struct vop_generic_args a_gen;
struct vnode *a_vp;
struct knote *a_kn;
};
extern struct vnodeop_desc vop_kqfilter_desc;
int VOP_KQFILTER_AP(struct vop_kqfilter_args *);
int VOP_KQFILTER_APV(struct vop_vector *vop, struct vop_kqfilter_args *);
static __inline int VOP_KQFILTER(
struct vnode *vp,
struct knote *kn)
{
struct vop_kqfilter_args a;
a.a_gen.a_desc = &vop_kqfilter_desc;
a.a_vp = vp;
a.a_kn = kn;
#if !defined(DEBUG_VFS_LOCKS) && !defined(INVARIANTS) && !defined(KTR)
if (!SDT_PROBES_ENABLED())
return (vp->v_op->vop_kqfilter(&a));
else
return (VOP_KQFILTER_APV(vp->v_op, &a));
#else
return (VOP_KQFILTER_APV(vp->v_op, &a));
#endif
}
struct vop_revoke_args {
struct vop_generic_args a_gen;
struct vnode *a_vp;
int a_flags;
};
extern struct vnodeop_desc vop_revoke_desc;
int VOP_REVOKE_AP(struct vop_revoke_args *);
int VOP_REVOKE_APV(struct vop_vector *vop, struct vop_revoke_args *);
static __inline int VOP_REVOKE(
struct vnode *vp,
int flags)
{
struct vop_revoke_args a;
a.a_gen.a_desc = &vop_revoke_desc;
a.a_vp = vp;
a.a_flags = flags;
#if !defined(DEBUG_VFS_LOCKS) && !defined(INVARIANTS) && !defined(KTR)
if (!SDT_PROBES_ENABLED())
return (vp->v_op->vop_revoke(&a));
else
return (VOP_REVOKE_APV(vp->v_op, &a));
#else
return (VOP_REVOKE_APV(vp->v_op, &a));
#endif
}
struct vop_fsync_args {
struct vop_generic_args a_gen;
struct vnode *a_vp;
int a_waitfor;
struct thread *a_td;
};
extern struct vnodeop_desc vop_fsync_desc;
int VOP_FSYNC_AP(struct vop_fsync_args *);
int VOP_FSYNC_APV(struct vop_vector *vop, struct vop_fsync_args *);
static __inline int VOP_FSYNC(
struct vnode *vp,
int waitfor,
struct thread *td)
{
struct vop_fsync_args a;
a.a_gen.a_desc = &vop_fsync_desc;
a.a_vp = vp;
a.a_waitfor = waitfor;
a.a_td = td;
return (VOP_FSYNC_APV(vp->v_op, &a));
}
struct vop_remove_args {
struct vop_generic_args a_gen;
struct vnode *a_dvp;
struct vnode *a_vp;
struct componentname *a_cnp;
};
extern struct vnodeop_desc vop_remove_desc;
int VOP_REMOVE_AP(struct vop_remove_args *);
int VOP_REMOVE_APV(struct vop_vector *vop, struct vop_remove_args *);
static __inline int VOP_REMOVE(
struct vnode *dvp,
struct vnode *vp,
struct componentname *cnp)
{
struct vop_remove_args a;
a.a_gen.a_desc = &vop_remove_desc;
a.a_dvp = dvp;
a.a_vp = vp;
a.a_cnp = cnp;
return (VOP_REMOVE_APV(dvp->v_op, &a));
}
struct vop_link_args {
struct vop_generic_args a_gen;
struct vnode *a_tdvp;
struct vnode *a_vp;
struct componentname *a_cnp;
};
extern struct vnodeop_desc vop_link_desc;
int VOP_LINK_AP(struct vop_link_args *);
int VOP_LINK_APV(struct vop_vector *vop, struct vop_link_args *);
static __inline int VOP_LINK(
struct vnode *tdvp,
struct vnode *vp,
struct componentname *cnp)
{
struct vop_link_args a;
a.a_gen.a_desc = &vop_link_desc;
a.a_tdvp = tdvp;
a.a_vp = vp;
a.a_cnp = cnp;
return (VOP_LINK_APV(tdvp->v_op, &a));
}
struct vop_rename_args {
struct vop_generic_args a_gen;
struct vnode *a_fdvp;
struct vnode *a_fvp;
struct componentname *a_fcnp;
struct vnode *a_tdvp;
struct vnode *a_tvp;
struct componentname *a_tcnp;
};
extern struct vnodeop_desc vop_rename_desc;
int VOP_RENAME_AP(struct vop_rename_args *);
int VOP_RENAME_APV(struct vop_vector *vop, struct vop_rename_args *);
static __inline int VOP_RENAME(
struct vnode *fdvp,
struct vnode *fvp,
struct componentname *fcnp,
struct vnode *tdvp,
struct vnode *tvp,
struct componentname *tcnp)
{
struct vop_rename_args a;
a.a_gen.a_desc = &vop_rename_desc;
a.a_fdvp = fdvp;
a.a_fvp = fvp;
a.a_fcnp = fcnp;
a.a_tdvp = tdvp;
a.a_tvp = tvp;
a.a_tcnp = tcnp;
return (VOP_RENAME_APV(fdvp->v_op, &a));
}
struct vop_mkdir_args {
struct vop_generic_args a_gen;
struct vnode *a_dvp;
struct vnode **a_vpp;
struct componentname *a_cnp;
struct vattr *a_vap;
};
extern struct vnodeop_desc vop_mkdir_desc;
int VOP_MKDIR_AP(struct vop_mkdir_args *);
int VOP_MKDIR_APV(struct vop_vector *vop, struct vop_mkdir_args *);
static __inline int VOP_MKDIR(
struct vnode *dvp,
struct vnode **vpp,
struct componentname *cnp,
struct vattr *vap)
{
struct vop_mkdir_args a;
a.a_gen.a_desc = &vop_mkdir_desc;
a.a_dvp = dvp;
a.a_vpp = vpp;
a.a_cnp = cnp;
a.a_vap = vap;
return (VOP_MKDIR_APV(dvp->v_op, &a));
}
struct vop_rmdir_args {
struct vop_generic_args a_gen;
struct vnode *a_dvp;
struct vnode *a_vp;
struct componentname *a_cnp;
};
extern struct vnodeop_desc vop_rmdir_desc;
int VOP_RMDIR_AP(struct vop_rmdir_args *);
int VOP_RMDIR_APV(struct vop_vector *vop, struct vop_rmdir_args *);
static __inline int VOP_RMDIR(
struct vnode *dvp,
struct vnode *vp,
struct componentname *cnp)
{
struct vop_rmdir_args a;
a.a_gen.a_desc = &vop_rmdir_desc;
a.a_dvp = dvp;
a.a_vp = vp;
a.a_cnp = cnp;
return (VOP_RMDIR_APV(dvp->v_op, &a));
}
struct vop_symlink_args {
struct vop_generic_args a_gen;
struct vnode *a_dvp;
struct vnode **a_vpp;
struct componentname *a_cnp;
struct vattr *a_vap;
const char *a_target;
};
extern struct vnodeop_desc vop_symlink_desc;
int VOP_SYMLINK_AP(struct vop_symlink_args *);
int VOP_SYMLINK_APV(struct vop_vector *vop, struct vop_symlink_args *);
static __inline int VOP_SYMLINK(
struct vnode *dvp,
struct vnode **vpp,
struct componentname *cnp,
struct vattr *vap,
const char *target)
{
struct vop_symlink_args a;
a.a_gen.a_desc = &vop_symlink_desc;
a.a_dvp = dvp;
a.a_vpp = vpp;
a.a_cnp = cnp;
a.a_vap = vap;
a.a_target = target;
return (VOP_SYMLINK_APV(dvp->v_op, &a));
}
struct vop_readdir_args {
struct vop_generic_args a_gen;
struct vnode *a_vp;
struct uio *a_uio;
struct ucred *a_cred;
int *a_eofflag;
int *a_ncookies;
uint64_t **a_cookies;
};
extern struct vnodeop_desc vop_readdir_desc;
int VOP_READDIR_AP(struct vop_readdir_args *);
int VOP_READDIR_APV(struct vop_vector *vop, struct vop_readdir_args *);
static __inline int VOP_READDIR(
struct vnode *vp,
struct uio *uio,
struct ucred *cred,
int *eofflag,
int *ncookies,
uint64_t **cookies)
{
struct vop_readdir_args a;
a.a_gen.a_desc = &vop_readdir_desc;
a.a_vp = vp;
a.a_uio = uio;
a.a_cred = cred;
a.a_eofflag = eofflag;
a.a_ncookies = ncookies;
a.a_cookies = cookies;
return (VOP_READDIR_APV(vp->v_op, &a));
}
struct vop_readlink_args {
struct vop_generic_args a_gen;
struct vnode *a_vp;
struct uio *a_uio;
struct ucred *a_cred;
};
extern struct vnodeop_desc vop_readlink_desc;
int VOP_READLINK_AP(struct vop_readlink_args *);
int VOP_READLINK_APV(struct vop_vector *vop, struct vop_readlink_args *);
static __inline int VOP_READLINK(
struct vnode *vp,
struct uio *uio,
struct ucred *cred)
{
struct vop_readlink_args a;
a.a_gen.a_desc = &vop_readlink_desc;
a.a_vp = vp;
a.a_uio = uio;
a.a_cred = cred;
#if !defined(DEBUG_VFS_LOCKS) && !defined(INVARIANTS) && !defined(KTR)
if (!SDT_PROBES_ENABLED())