File: structfuse__operations.html

package info (click to toggle)
fuse 2.9.9-5
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 9,652 kB
  • sloc: ansic: 16,565; sh: 4,865; makefile: 167; javascript: 103
file content (924 lines) | stat: -rw-r--r-- 65,173 bytes parent folder | download | duplicates (7)
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libfuse: fuse_operations Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libfuse
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">fuse_operations Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="fuse_8h_source.html">fuse.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:ac39a0b7125a0e5001eb5ff42e05faa5d"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#ac39a0b7125a0e5001eb5ff42e05faa5d">getattr</a> )(const char *, struct stat *, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *fi)</td></tr>
<tr class="separator:ac39a0b7125a0e5001eb5ff42e05faa5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a7fe4e7fe5db55e96ef6adaf64c09e2"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#a0a7fe4e7fe5db55e96ef6adaf64c09e2">readlink</a> )(const char *, char *, size_t)</td></tr>
<tr class="separator:a0a7fe4e7fe5db55e96ef6adaf64c09e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a086e9d012d0de2f2cdd53ba13c65ace7"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#a086e9d012d0de2f2cdd53ba13c65ace7">mknod</a> )(const char *, mode_t, dev_t)</td></tr>
<tr class="separator:a086e9d012d0de2f2cdd53ba13c65ace7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58099b7eb4078ec35b911d7dc1c49cb9"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#a58099b7eb4078ec35b911d7dc1c49cb9">mkdir</a> )(const char *, mode_t)</td></tr>
<tr class="separator:a58099b7eb4078ec35b911d7dc1c49cb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61c9fc784e6218b9943ce0bc49c48a3d"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#a61c9fc784e6218b9943ce0bc49c48a3d">unlink</a> )(const char *)</td></tr>
<tr class="separator:a61c9fc784e6218b9943ce0bc49c48a3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac08fb89a4d0bd842986730d57b7a42ff"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#ac08fb89a4d0bd842986730d57b7a42ff">rmdir</a> )(const char *)</td></tr>
<tr class="separator:ac08fb89a4d0bd842986730d57b7a42ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3039bb250169cf41be015faa0f899a38"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#a3039bb250169cf41be015faa0f899a38">symlink</a> )(const char *, const char *)</td></tr>
<tr class="separator:a3039bb250169cf41be015faa0f899a38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc484e37f216a8a18b97e01a83c6a6a2"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#adc484e37f216a8a18b97e01a83c6a6a2">rename</a> )(const char *, const char *, unsigned int flags)</td></tr>
<tr class="separator:adc484e37f216a8a18b97e01a83c6a6a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca657a1bcec2528e4e45add8f20de1f5"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#aca657a1bcec2528e4e45add8f20de1f5">link</a> )(const char *, const char *)</td></tr>
<tr class="separator:aca657a1bcec2528e4e45add8f20de1f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd4145dfaa455ac2745c8e0a7a0e32cb"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#abd4145dfaa455ac2745c8e0a7a0e32cb">chmod</a> )(const char *, mode_t, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *fi)</td></tr>
<tr class="separator:abd4145dfaa455ac2745c8e0a7a0e32cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a37d7df147555ae806a6b9f0d108ecf"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#a5a37d7df147555ae806a6b9f0d108ecf">chown</a> )(const char *, uid_t, gid_t, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *fi)</td></tr>
<tr class="separator:a5a37d7df147555ae806a6b9f0d108ecf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73ddfa101255e902cb0ca25b40785be8"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#a73ddfa101255e902cb0ca25b40785be8">truncate</a> )(const char *, off_t, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *fi)</td></tr>
<tr class="separator:a73ddfa101255e902cb0ca25b40785be8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08a085fceedd8770e3290a80aa9645ac"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#a08a085fceedd8770e3290a80aa9645ac">open</a> )(const char *, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td></tr>
<tr class="separator:a08a085fceedd8770e3290a80aa9645ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a272960bfd96a0100cbadc4e5a8886038"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#a272960bfd96a0100cbadc4e5a8886038">read</a> )(const char *, char *, size_t, off_t, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td></tr>
<tr class="separator:a272960bfd96a0100cbadc4e5a8886038"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1fdc611027324dd68a550f9662db1fac"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#a1fdc611027324dd68a550f9662db1fac">write</a> )(const char *, const char *, size_t, off_t, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td></tr>
<tr class="separator:a1fdc611027324dd68a550f9662db1fac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76d29dba617a64321cf52d62cd969292"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#a76d29dba617a64321cf52d62cd969292">statfs</a> )(const char *, struct statvfs *)</td></tr>
<tr class="separator:a76d29dba617a64321cf52d62cd969292"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6bfecd61ddd58f74820953ee23b19ef3"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#a6bfecd61ddd58f74820953ee23b19ef3">flush</a> )(const char *, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td></tr>
<tr class="separator:a6bfecd61ddd58f74820953ee23b19ef3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a6f1b50c583774125b5003811ecebce"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#a4a6f1b50c583774125b5003811ecebce">release</a> )(const char *, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td></tr>
<tr class="separator:a4a6f1b50c583774125b5003811ecebce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abaa2a0bdc9b9955a399ea6973f6f4927"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#abaa2a0bdc9b9955a399ea6973f6f4927">fsync</a> )(const char *, int, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td></tr>
<tr class="separator:abaa2a0bdc9b9955a399ea6973f6f4927"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa45a72b6238ec1e97f910d940aaddc51"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#aa45a72b6238ec1e97f910d940aaddc51">setxattr</a> )(const char *, const char *, const char *, size_t, int)</td></tr>
<tr class="separator:aa45a72b6238ec1e97f910d940aaddc51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3b04e186793cf6c6b81bf7fea5be417"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#aa3b04e186793cf6c6b81bf7fea5be417">getxattr</a> )(const char *, const char *, char *, size_t)</td></tr>
<tr class="separator:aa3b04e186793cf6c6b81bf7fea5be417"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6fbfd692db6efb23a3f84b6926c398af"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#a6fbfd692db6efb23a3f84b6926c398af">listxattr</a> )(const char *, char *, size_t)</td></tr>
<tr class="separator:a6fbfd692db6efb23a3f84b6926c398af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8078e468e2ef46f8084bc8f58252000"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#ad8078e468e2ef46f8084bc8f58252000">removexattr</a> )(const char *, const char *)</td></tr>
<tr class="separator:ad8078e468e2ef46f8084bc8f58252000"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe51ac9a15f28e68de9b7b09199cbbe2"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#abe51ac9a15f28e68de9b7b09199cbbe2">opendir</a> )(const char *, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td></tr>
<tr class="separator:abe51ac9a15f28e68de9b7b09199cbbe2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae269583c4bfaf4d9a82e1d51a902cd5c"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#ae269583c4bfaf4d9a82e1d51a902cd5c">readdir</a> )(const char *, void *, <a class="el" href="fuse_8h.html#a7dd132de66a5cc2add2a4eff5d435660">fuse_fill_dir_t</a>, off_t, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *, enum <a class="el" href="fuse_8h.html#af2bcf2a473b41b3cc8da8c079656a074">fuse_readdir_flags</a>)</td></tr>
<tr class="separator:ae269583c4bfaf4d9a82e1d51a902cd5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3760f5298013d4255bed9932e719db1"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#ac3760f5298013d4255bed9932e719db1">releasedir</a> )(const char *, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td></tr>
<tr class="separator:ac3760f5298013d4255bed9932e719db1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57c3cd511dd199cd52e8fe145e9b4b20"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#a57c3cd511dd199cd52e8fe145e9b4b20">fsyncdir</a> )(const char *, int, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td></tr>
<tr class="separator:a57c3cd511dd199cd52e8fe145e9b4b20"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ad1f7c4105ee062528c767da88060f0"><td class="memItemLeft" align="right" valign="top">void *(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#a0ad1f7c4105ee062528c767da88060f0">init</a> )(struct <a class="el" href="structfuse__conn__info.html">fuse_conn_info</a> *conn, struct <a class="el" href="structfuse__config.html">fuse_config</a> *cfg)</td></tr>
<tr class="separator:a0ad1f7c4105ee062528c767da88060f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7485db1c9c6d402323f7a24e1b7db82"><td class="memItemLeft" align="right" valign="top">void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#af7485db1c9c6d402323f7a24e1b7db82">destroy</a> )(void *private_data)</td></tr>
<tr class="separator:af7485db1c9c6d402323f7a24e1b7db82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4dd366b9f74ead6927fb75afb91863bc"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#a4dd366b9f74ead6927fb75afb91863bc">access</a> )(const char *, int)</td></tr>
<tr class="separator:a4dd366b9f74ead6927fb75afb91863bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f5349c22f360bda57ff10d10486d148"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#a8f5349c22f360bda57ff10d10486d148">create</a> )(const char *, mode_t, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td></tr>
<tr class="separator:a8f5349c22f360bda57ff10d10486d148"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50875b0793d46b25e30cea61b2eb7a3b"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#a50875b0793d46b25e30cea61b2eb7a3b">lock</a> )(const char *, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *, int cmd, struct <a class="el" href="structfuse__operations.html#acc2c00ad92ac7dd1c130995b65ea8955">flock</a> *)</td></tr>
<tr class="separator:a50875b0793d46b25e30cea61b2eb7a3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a936691bc2d278d6cbd344a6aad1b2c07"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#a936691bc2d278d6cbd344a6aad1b2c07">utimens</a> )(const char *, const struct timespec tv[2], struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *fi)</td></tr>
<tr class="separator:a936691bc2d278d6cbd344a6aad1b2c07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb5d953d0aca9d859480abd470abd754"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#afb5d953d0aca9d859480abd470abd754">bmap</a> )(const char *, size_t blocksize, uint64_t *idx)</td></tr>
<tr class="separator:afb5d953d0aca9d859480abd470abd754"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad63a7eb3cfe87b4be0bd652075e8ff8d"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#ad63a7eb3cfe87b4be0bd652075e8ff8d">ioctl</a> )(const char *, int cmd, void *arg, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *, unsigned int flags, void *data)</td></tr>
<tr class="separator:ad63a7eb3cfe87b4be0bd652075e8ff8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae917aafa687ffbf7b76fd3a335f10f9"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#aae917aafa687ffbf7b76fd3a335f10f9">poll</a> )(const char *, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *, struct fuse_pollhandle *ph, unsigned *reventsp)</td></tr>
<tr class="separator:aae917aafa687ffbf7b76fd3a335f10f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42689ab07d7f98a89fe4707a10ce4bc3"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#a42689ab07d7f98a89fe4707a10ce4bc3">write_buf</a> )(const char *, struct <a class="el" href="structfuse__bufvec.html">fuse_bufvec</a> *buf, off_t off, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td></tr>
<tr class="separator:a42689ab07d7f98a89fe4707a10ce4bc3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3b565dd3ea7e882eb1a6a868fc6a083"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#ac3b565dd3ea7e882eb1a6a868fc6a083">read_buf</a> )(const char *, struct <a class="el" href="structfuse__bufvec.html">fuse_bufvec</a> **bufp, size_t size, off_t off, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td></tr>
<tr class="separator:ac3b565dd3ea7e882eb1a6a868fc6a083"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc2c00ad92ac7dd1c130995b65ea8955"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#acc2c00ad92ac7dd1c130995b65ea8955">flock</a> )(const char *, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *, int op)</td></tr>
<tr class="separator:acc2c00ad92ac7dd1c130995b65ea8955"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22ee7ba94cbc9ad068b15a0b1d22afd3"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#a22ee7ba94cbc9ad068b15a0b1d22afd3">fallocate</a> )(const char *, int, off_t, off_t, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td></tr>
<tr class="separator:a22ee7ba94cbc9ad068b15a0b1d22afd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b68daa154f8400cfb76e790aad9e697"><td class="memItemLeft" align="right" valign="top">ssize_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__operations.html#a8b68daa154f8400cfb76e790aad9e697">copy_file_range</a> )(const char *path_in, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *fi_in, off_t offset_in, const char *path_out, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *fi_out, off_t offset_out, size_t size, int flags)</td></tr>
<tr class="separator:a8b68daa154f8400cfb76e790aad9e697"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The file system operations:</p>
<p>Most of these should work very similarly to the well known UNIX file system operations. A major exception is that instead of returning an error in 'errno', the operation should return the negated error value (-errno) directly.</p>
<p>All methods are optional, but some are essential for a useful filesystem (e.g. getattr). Open, flush, release, fsync, opendir, releasedir, fsyncdir, access, create, truncate, lock, init and destroy are special purpose methods, without which a full featured filesystem can still be implemented.</p>
<p>In general, all methods are expected to perform any necessary permission checking. However, a filesystem may delegate this task to the kernel by passing the <code>default_permissions</code> mount option to <code><a class="el" href="fuse_8h.html#ad866b0fd4d81bdbf3e737f7273ba4520">fuse_new()</a></code>. In this case, methods will only be called if the kernel's permission check has succeeded.</p>
<p>Almost all operations take a path which can be of any length. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00299">299</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>
</div><h2 class="groupheader">Field Documentation</h2>
<a id="a4dd366b9f74ead6927fb75afb91863bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4dd366b9f74ead6927fb75afb91863bc">&#9670;&nbsp;</a></span>access</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::access) (const char *, int)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Check file access permissions</p>
<p>This will be called for the <a class="el" href="structfuse__operations.html#a4dd366b9f74ead6927fb75afb91863bc">access()</a> system call. If the 'default_permissions' mount option is given, this method is not called.</p>
<p>This method is not called under Linux kernel versions 2.4.x </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00591">591</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="afb5d953d0aca9d859480abd470abd754"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb5d953d0aca9d859480abd470abd754">&#9670;&nbsp;</a></span>bmap</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::bmap) (const char *, size_t blocksize, uint64_t *idx)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Map block index within file to block index within device</p>
<p>Note: This makes sense only for block device backed filesystems mounted with the 'blkdev' option </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00659">659</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="abd4145dfaa455ac2745c8e0a7a0e32cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd4145dfaa455ac2745c8e0a7a0e32cb">&#9670;&nbsp;</a></span>chmod</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::chmod) (const char *, mode_t, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *fi)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Change the permission bits of a file</p>
<p><code>fi</code> will always be NULL if the file is not currenlty open, but may also be NULL if the file is open. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00367">367</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="a5a37d7df147555ae806a6b9f0d108ecf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5a37d7df147555ae806a6b9f0d108ecf">&#9670;&nbsp;</a></span>chown</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::chown) (const char *, uid_t, gid_t, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *fi)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Change the owner and group of a file</p>
<p><code>fi</code> will always be NULL if the file is not currenlty open, but may also be NULL if the file is open.</p>
<p>Unless FUSE_CAP_HANDLE_KILLPRIV is disabled, this method is expected to reset the setuid and setgid bits. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00377">377</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="a8b68daa154f8400cfb76e790aad9e697"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8b68daa154f8400cfb76e790aad9e697">&#9670;&nbsp;</a></span>copy_file_range</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ssize_t(* fuse_operations::copy_file_range) (const char *path_in, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *fi_in, off_t offset_in, const char *path_out, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *fi_out, off_t offset_out, size_t size, int flags)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Copy a range of data from one file to another</p>
<p>Performs an optimized copy between two file descriptors without the additional cost of transferring data through the FUSE kernel module to user space (glibc) and then back into the FUSE filesystem again.</p>
<p>In case this method is not implemented, glibc falls back to reading data from the source and writing to the destination. Effectively doing an inefficient copy of the data. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00765">765</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="a8f5349c22f360bda57ff10d10486d148"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f5349c22f360bda57ff10d10486d148">&#9670;&nbsp;</a></span>create</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::create) (const char *, mode_t, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create and open a file</p>
<p>If the file does not exist, first create it with the specified mode, and then open it.</p>
<p>If this method is not implemented or under Linux kernel versions earlier than 2.6.15, the <a class="el" href="structfuse__operations.html#a086e9d012d0de2f2cdd53ba13c65ace7">mknod()</a> and <a class="el" href="structfuse__operations.html#a08a085fceedd8770e3290a80aa9645ac">open()</a> methods will be called instead. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00603">603</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="af7485db1c9c6d402323f7a24e1b7db82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af7485db1c9c6d402323f7a24e1b7db82">&#9670;&nbsp;</a></span>destroy</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void(* fuse_operations::destroy) (void *private_data)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Clean up filesystem</p>
<p>Called on filesystem exit. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00580">580</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="a22ee7ba94cbc9ad068b15a0b1d22afd3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a22ee7ba94cbc9ad068b15a0b1d22afd3">&#9670;&nbsp;</a></span>fallocate</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::fallocate) (const char *, int, off_t, off_t, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Allocates space for an open file</p>
<p>This function ensures that required space is allocated for specified file. If this function returns success then any subsequent write request to specified range is guaranteed not to fail because of lack of space on the file system media. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00751">751</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="acc2c00ad92ac7dd1c130995b65ea8955"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acc2c00ad92ac7dd1c130995b65ea8955">&#9670;&nbsp;</a></span>flock</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::flock) (const char *, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *, int op)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Perform BSD file locking operation</p>
<p>The op argument will be either LOCK_SH, LOCK_EX or LOCK_UN</p>
<p>Nonblocking requests will be indicated by ORing LOCK_NB to the above operations</p>
<p>For more information see the flock(2) manual page.</p>
<p>Additionally fi-&gt;owner will be set to a value unique to this open file. This same value will be supplied to -&gt;<a class="el" href="structfuse__operations.html#a4a6f1b50c583774125b5003811ecebce">release()</a> when the file is released.</p>
<p>Note: if this method is not implemented, the kernel will still allow file locking to work locally. Hence it is only interesting for network filesystems and similar. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00741">741</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="a6bfecd61ddd58f74820953ee23b19ef3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6bfecd61ddd58f74820953ee23b19ef3">&#9670;&nbsp;</a></span>flush</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::flush) (const char *, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Possibly flush cached data</p>
<p>BIG NOTE: This is not equivalent to <a class="el" href="structfuse__operations.html#abaa2a0bdc9b9955a399ea6973f6f4927">fsync()</a>. It's not a request to sync dirty data.</p>
<p>Flush is called on each close() of a file descriptor. So if a filesystem wants to return write errors in close() and the file has cached dirty data, this is a good place to write back data and return any errors. Since many applications ignore close() errors this is not always useful.</p>
<p>NOTE: The <a class="el" href="structfuse__operations.html#a6bfecd61ddd58f74820953ee23b19ef3">flush()</a> method may be called more than once for each <a class="el" href="structfuse__operations.html#a08a085fceedd8770e3290a80aa9645ac">open()</a>. This happens if more than one file descriptor refers to an opened file due to dup(), dup2() or fork() calls. It is not possible to determine if a flush is final, so each flush should be treated equally. Multiple write-flush sequences are relatively rare, so this shouldn't be a problem.</p>
<p>Filesystems shouldn't assume that flush will always be called after some writes, or that if will be called at all. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00490">490</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="abaa2a0bdc9b9955a399ea6973f6f4927"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abaa2a0bdc9b9955a399ea6973f6f4927">&#9670;&nbsp;</a></span>fsync</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::fsync) (const char *, int, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Synchronize file contents</p>
<p>If the datasync parameter is non-zero, then only the user data should be flushed, not the meta data. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00511">511</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="a57c3cd511dd199cd52e8fe145e9b4b20"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57c3cd511dd199cd52e8fe145e9b4b20">&#9670;&nbsp;</a></span>fsyncdir</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::fsyncdir) (const char *, int, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Synchronize directory contents</p>
<p>If the datasync parameter is non-zero, then only the user data should be flushed, not the meta data </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00562">562</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="ac39a0b7125a0e5001eb5ff42e05faa5d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac39a0b7125a0e5001eb5ff42e05faa5d">&#9670;&nbsp;</a></span>getattr</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::getattr) (const char *, struct stat *, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *fi)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get file attributes.</p>
<p>Similar to stat(). The 'st_dev' and 'st_blksize' fields are ignored. The 'st_ino' field is ignored except if the 'use_ino' mount option is given. In that case it is passed to userspace, but libfuse and the kernel will still assign a different inode for internal use (called the "nodeid").</p>
<p><code>fi</code> will always be NULL if the file is not currently open, but may also be NULL if the file is open. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00311">311</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="aa3b04e186793cf6c6b81bf7fea5be417"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3b04e186793cf6c6b81bf7fea5be417">&#9670;&nbsp;</a></span>getxattr</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::getxattr) (const char *, const char *, char *, size_t)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get extended attributes </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00517">517</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="a0ad1f7c4105ee062528c767da88060f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0ad1f7c4105ee062528c767da88060f0">&#9670;&nbsp;</a></span>init</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void*(* fuse_operations::init) (struct <a class="el" href="structfuse__conn__info.html">fuse_conn_info</a> *conn, struct <a class="el" href="structfuse__config.html">fuse_config</a> *cfg)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Initialize filesystem</p>
<p>The return value will passed in the <code>private_data</code> field of <code>struct <a class="el" href="structfuse__context.html">fuse_context</a></code> to all file operations, and as a parameter to the <a class="el" href="structfuse__operations.html#af7485db1c9c6d402323f7a24e1b7db82">destroy()</a> method. It overrides the initial value provided to <a class="el" href="fuse_8h.html#ac99b844cee7aaa8fb4e35df5b5488d82">fuse_main()</a> / <a class="el" href="fuse_8h.html#ad866b0fd4d81bdbf3e737f7273ba4520">fuse_new()</a>. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00572">572</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="ad63a7eb3cfe87b4be0bd652075e8ff8d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad63a7eb3cfe87b4be0bd652075e8ff8d">&#9670;&nbsp;</a></span>ioctl</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::ioctl) (const char *, int cmd, void *arg, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *, unsigned int flags, void *data)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Ioctl</p>
<p>flags will have FUSE_IOCTL_COMPAT set for 32bit ioctls in 64bit environment. The size and direction of data is determined by <em>IOC</em>*() decoding of cmd. For _IOC_NONE, data will be NULL, for _IOC_WRITE data is out area, for _IOC_READ in area and if both are set in/out area. In all non-NULL cases, the area is of _IOC_SIZE(cmd) bytes.</p>
<p>If flags has FUSE_IOCTL_DIR then the <a class="el" href="structfuse__file__info.html">fuse_file_info</a> refers to a directory file handle. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00674">674</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="aca657a1bcec2528e4e45add8f20de1f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca657a1bcec2528e4e45add8f20de1f5">&#9670;&nbsp;</a></span>link</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::link) (const char *, const char *)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create a hard link to a file </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00360">360</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="a6fbfd692db6efb23a3f84b6926c398af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6fbfd692db6efb23a3f84b6926c398af">&#9670;&nbsp;</a></span>listxattr</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::listxattr) (const char *, char *, size_t)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>List extended attributes </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00520">520</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="a50875b0793d46b25e30cea61b2eb7a3b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50875b0793d46b25e30cea61b2eb7a3b">&#9670;&nbsp;</a></span>lock</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::lock) (const char *, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *, int cmd, struct <a class="el" href="structfuse__operations.html#acc2c00ad92ac7dd1c130995b65ea8955">flock</a> *)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Perform POSIX file locking operation</p>
<p>The cmd argument will be either F_GETLK, F_SETLK or F_SETLKW.</p>
<p>For the meaning of fields in 'struct flock' see the man page for fcntl(2). The l_whence field will always be set to SEEK_SET.</p>
<p>For checking lock ownership, the 'fuse_file_info-&gt;owner' argument must be used.</p>
<p>For F_GETLK operation, the library will first check currently held locks, and if a conflicting lock is found it will return information without calling this method. This ensures, that for local locks the l_pid field is correctly filled in. The results may not be accurate in case of race conditions and in the presence of hard links, but it's unlikely that an application would rely on accurate GETLK results in these cases. If a conflicting lock is not found, this method will be called, and the filesystem may fill out l_pid by a meaningful value, or it may leave this field zero.</p>
<p>For F_SETLK and F_SETLKW the l_pid field will be set to the pid of the process performing the locking operation.</p>
<p>Note: if this method is not implemented, the kernel will still allow file locking to work locally. Hence it is only interesting for network filesystems and similar. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00635">635</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="a58099b7eb4078ec35b911d7dc1c49cb9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a58099b7eb4078ec35b911d7dc1c49cb9">&#9670;&nbsp;</a></span>mkdir</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::mkdir) (const char *, mode_t)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create a directory</p>
<p>Note that the mode argument may not have the type specification bits set, i.e. S_ISDIR(mode) can be false. To obtain the correct directory type bits use mode|S_IFDIR </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00337">337</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="a086e9d012d0de2f2cdd53ba13c65ace7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a086e9d012d0de2f2cdd53ba13c65ace7">&#9670;&nbsp;</a></span>mknod</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::mknod) (const char *, mode_t, dev_t)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create a file node</p>
<p>This is called for creation of all non-directory, non-symlink nodes. If the filesystem defines a <a class="el" href="structfuse__operations.html#a8f5349c22f360bda57ff10d10486d148">create()</a> method, then for regular files that will be called instead. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00329">329</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="a08a085fceedd8770e3290a80aa9645ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a08a085fceedd8770e3290a80aa9645ac">&#9670;&nbsp;</a></span>open</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::open) (const char *, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Open a file</p>
<p>Open flags are available in fi-&gt;flags. The following rules apply.</p>
<ul>
<li>Creation (O_CREAT, O_EXCL, O_NOCTTY) flags will be filtered out / handled by the kernel.</li>
<li>Access modes (O_RDONLY, O_WRONLY, O_RDWR) should be used by the filesystem to check if the operation is permitted. If the <code>-o default_permissions</code> mount option is given, this check is already done by the kernel before calling <a class="el" href="structfuse__operations.html#a08a085fceedd8770e3290a80aa9645ac">open()</a> and may thus be omitted by the filesystem.</li>
<li>When writeback caching is enabled, the kernel may send read requests even for files opened with O_WRONLY. The filesystem should be prepared to handle this.</li>
<li>When writeback caching is disabled, the filesystem is expected to properly handle the O_APPEND flag and ensure that each write is appending to the end of the file.</li>
<li>When writeback caching is enabled, the kernel will handle O_APPEND. However, unless all changes to the file come through the kernel this will not work reliably. The filesystem should thus either ignore the O_APPEND flag (and let the kernel handle it), or return an error (indicating that reliably O_APPEND is not available).</li>
</ul>
<p>Filesystem may store an arbitrary file handle (pointer, index, etc) in fi-&gt;fh, and use this in other all other file operations (read, write, flush, release, fsync).</p>
<p>Filesystem may also implement stateless file I/O and not store anything in fi-&gt;fh.</p>
<p>There are also some flags (direct_io, keep_cache) which the filesystem may set in fi, to change the way the file is opened. See <a class="el" href="structfuse__file__info.html">fuse_file_info</a> structure in &lt;<a class="el" href="fuse__common_8h.html">fuse_common.h</a>&gt; for more details.</p>
<p>If this request is answered with an error code of ENOSYS and FUSE_CAP_NO_OPEN_SUPPORT is set in <code><a class="el" href="structfuse__conn__info.html#a8a1c61f5d7cc14249fb6971165bb958e">fuse_conn_info.capable</a></code>, this is treated as success and future calls to open will also succeed without being send to the filesystem process. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00437">437</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="abe51ac9a15f28e68de9b7b09199cbbe2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe51ac9a15f28e68de9b7b09199cbbe2">&#9670;&nbsp;</a></span>opendir</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::opendir) (const char *, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Open directory</p>
<p>Unless the 'default_permissions' mount option is given, this method should check if opendir is permitted for this directory. Optionally opendir may also return an arbitrary filehandle in the <a class="el" href="structfuse__file__info.html">fuse_file_info</a> structure, which will be passed to readdir, releasedir and fsyncdir. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00533">533</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="aae917aafa687ffbf7b76fd3a335f10f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae917aafa687ffbf7b76fd3a335f10f9">&#9670;&nbsp;</a></span>poll</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::poll) (const char *, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *, struct fuse_pollhandle *ph, unsigned *reventsp)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Poll for IO readiness events</p>
<p>Note: If ph is non-NULL, the client should notify when IO readiness events occur by calling fuse_notify_poll() with the specified ph.</p>
<p>Regardless of the number of times poll with a non-NULL ph is received, single notification is enough to clear all. Notifying more times incurs overhead but doesn't harm correctness.</p>
<p>The callee is responsible for destroying ph with <a class="el" href="fuse__common_8h.html#adf5027f8a38b2efc03858efd7fdc756a">fuse_pollhandle_destroy()</a> when no longer in use. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00692">692</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="a272960bfd96a0100cbadc4e5a8886038"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a272960bfd96a0100cbadc4e5a8886038">&#9670;&nbsp;</a></span>read</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::read) (const char *, char *, size_t, off_t, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Read data from an open file</p>
<p>Read should return exactly the number of bytes requested except on EOF or error, otherwise the rest of the data will be substituted with zeroes. An exception to this is when the 'direct_io' mount option is specified, in which case the return value of the read system call will reflect the return value of this operation. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00448">448</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="ac3b565dd3ea7e882eb1a6a868fc6a083"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac3b565dd3ea7e882eb1a6a868fc6a083">&#9670;&nbsp;</a></span>read_buf</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::read_buf) (const char *, struct <a class="el" href="structfuse__bufvec.html">fuse_bufvec</a> **bufp, size_t size, off_t off, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Store data from an open file in a buffer</p>
<p>Similar to the <a class="el" href="structfuse__operations.html#a272960bfd96a0100cbadc4e5a8886038">read()</a> method, but data is stored and returned in a generic buffer.</p>
<p>No actual copying of data has to take place, the source file descriptor may simply be stored in the buffer for later data transfer.</p>
<p>The buffer must be allocated dynamically and stored at the location pointed to by bufp. If the buffer contains memory regions, they too must be allocated using malloc(). The allocated memory will be freed by the caller. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00721">721</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="ae269583c4bfaf4d9a82e1d51a902cd5c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae269583c4bfaf4d9a82e1d51a902cd5c">&#9670;&nbsp;</a></span>readdir</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::readdir) (const char *, void *, <a class="el" href="fuse_8h.html#a7dd132de66a5cc2add2a4eff5d435660">fuse_fill_dir_t</a>, off_t, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *, enum <a class="el" href="fuse_8h.html#af2bcf2a473b41b3cc8da8c079656a074">fuse_readdir_flags</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Read directory</p>
<p>The filesystem may choose between two modes of operation:</p>
<p>1) The readdir implementation ignores the offset parameter, and passes zero to the filler function's offset. The filler function will not return '1' (unless an error happens), so the whole directory is read in a single readdir operation.</p>
<p>2) The readdir implementation keeps track of the offsets of the directory entries. It uses the offset parameter and always passes non-zero offset to the filler function. When the buffer is full (or an error happens) the filler function will return '1'. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00550">550</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="a0a7fe4e7fe5db55e96ef6adaf64c09e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a7fe4e7fe5db55e96ef6adaf64c09e2">&#9670;&nbsp;</a></span>readlink</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::readlink) (const char *, char *, size_t)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Read the target of a symbolic link</p>
<p>The buffer should be filled with a null terminated string. The buffer size argument includes the space for the terminating null character. If the linkname is too long to fit in the buffer, it should be truncated. The return value should be 0 for success. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00321">321</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="a4a6f1b50c583774125b5003811ecebce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a6f1b50c583774125b5003811ecebce">&#9670;&nbsp;</a></span>release</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::release) (const char *, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Release an open file</p>
<p>Release is called when there are no more references to an open file: all file descriptors are closed and all memory mappings are unmapped.</p>
<p>For every <a class="el" href="structfuse__operations.html#a08a085fceedd8770e3290a80aa9645ac">open()</a> call there will be exactly one <a class="el" href="structfuse__operations.html#a4a6f1b50c583774125b5003811ecebce">release()</a> call with the same flags and file descriptor. It is possible to have a file opened more than once, in which case only the last release will mean, that no more reads/writes will happen on the file. The return value of release is ignored. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00504">504</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="ac3760f5298013d4255bed9932e719db1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac3760f5298013d4255bed9932e719db1">&#9670;&nbsp;</a></span>releasedir</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::releasedir) (const char *, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Release directory </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00555">555</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="ad8078e468e2ef46f8084bc8f58252000"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad8078e468e2ef46f8084bc8f58252000">&#9670;&nbsp;</a></span>removexattr</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::removexattr) (const char *, const char *)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Remove extended attributes </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00523">523</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="adc484e37f216a8a18b97e01a83c6a6a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adc484e37f216a8a18b97e01a83c6a6a2">&#9670;&nbsp;</a></span>rename</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::rename) (const char *, const char *, unsigned int flags)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Rename a file</p>
<p><em>flags</em> may be <code>RENAME_EXCHANGE</code> or <code>RENAME_NOREPLACE</code>. If RENAME_NOREPLACE is specified, the filesystem must not overwrite <em>newname</em> if it exists and return an error instead. If <code>RENAME_EXCHANGE</code> is specified, the filesystem must atomically exchange the two files, i.e. both must exist and neither may be deleted. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00357">357</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="ac08fb89a4d0bd842986730d57b7a42ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac08fb89a4d0bd842986730d57b7a42ff">&#9670;&nbsp;</a></span>rmdir</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::rmdir) (const char *)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Remove a directory </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00343">343</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="aa45a72b6238ec1e97f910d940aaddc51"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa45a72b6238ec1e97f910d940aaddc51">&#9670;&nbsp;</a></span>setxattr</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::setxattr) (const char *, const char *, const char *, size_t, int)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set extended attributes </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00514">514</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="a76d29dba617a64321cf52d62cd969292"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a76d29dba617a64321cf52d62cd969292">&#9670;&nbsp;</a></span>statfs</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::statfs) (const char *, struct statvfs *)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get file system statistics</p>
<p>The 'f_favail', 'f_fsid' and 'f_flag' fields are ignored </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00467">467</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="a3039bb250169cf41be015faa0f899a38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3039bb250169cf41be015faa0f899a38">&#9670;&nbsp;</a></span>symlink</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::symlink) (const char *, const char *)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create a symbolic link </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00346">346</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="a73ddfa101255e902cb0ca25b40785be8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a73ddfa101255e902cb0ca25b40785be8">&#9670;&nbsp;</a></span>truncate</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::truncate) (const char *, off_t, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *fi)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Change the size of a file</p>
<p><code>fi</code> will always be NULL if the file is not currenlty open, but may also be NULL if the file is open.</p>
<p>Unless FUSE_CAP_HANDLE_KILLPRIV is disabled, this method is expected to reset the setuid and setgid bits. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00387">387</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="a61c9fc784e6218b9943ce0bc49c48a3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a61c9fc784e6218b9943ce0bc49c48a3d">&#9670;&nbsp;</a></span>unlink</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::unlink) (const char *)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Remove a file </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00340">340</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="a936691bc2d278d6cbd344a6aad1b2c07"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a936691bc2d278d6cbd344a6aad1b2c07">&#9670;&nbsp;</a></span>utimens</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::utimens) (const char *, const struct timespec tv[2], struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *fi)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Change the access and modification times of a file with nanosecond resolution</p>
<p>This supersedes the old utime() interface. New applications should use this.</p>
<p><code>fi</code> will always be NULL if the file is not currenlty open, but may also be NULL if the file is open.</p>
<p>See the utimensat(2) man page for details. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00650">650</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="a1fdc611027324dd68a550f9662db1fac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1fdc611027324dd68a550f9662db1fac">&#9670;&nbsp;</a></span>write</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::write) (const char *, const char *, size_t, off_t, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Write data to an open file</p>
<p>Write should return exactly the number of bytes requested except on error. An exception to this is when the 'direct_io' mount option is specified (see read operation).</p>
<p>Unless FUSE_CAP_HANDLE_KILLPRIV is disabled, this method is expected to reset the setuid and setgid bits. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00460">460</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<a id="a42689ab07d7f98a89fe4707a10ce4bc3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a42689ab07d7f98a89fe4707a10ce4bc3">&#9670;&nbsp;</a></span>write_buf</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* fuse_operations::write_buf) (const char *, struct <a class="el" href="structfuse__bufvec.html">fuse_bufvec</a> *buf, off_t off, struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Write contents of buffer to an open file</p>
<p>Similar to the <a class="el" href="structfuse__operations.html#a1fdc611027324dd68a550f9662db1fac">write()</a> method, but data is supplied in a generic buffer. Use <a class="el" href="fuse__common_8h.html#a9ca301390fb5e85b85153abb1891a3f7">fuse_buf_copy()</a> to transfer data to the destination.</p>
<p>Unless FUSE_CAP_HANDLE_KILLPRIV is disabled, this method is expected to reset the setuid and setgid bits. </p>

<p class="definition">Definition at line <a class="el" href="fuse_8h_source.html#l00704">704</a> of file <a class="el" href="fuse_8h_source.html">fuse.h</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>include/<a class="el" href="fuse_8h_source.html">fuse.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>