You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2291 lines
105 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.8"/>
  7. <title>fuse: include/fuse_lowlevel.h File Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  12. </head>
  13. <body>
  14. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  15. <div id="titlearea">
  16. <table cellspacing="0" cellpadding="0">
  17. <tbody>
  18. <tr style="height: 56px;">
  19. <td style="padding-left: 0.5em;">
  20. <div id="projectname">fuse
  21. </div>
  22. </td>
  23. </tr>
  24. </tbody>
  25. </table>
  26. </div>
  27. <!-- end header part -->
  28. <!-- Generated by Doxygen 1.8.8 -->
  29. <div id="navrow1" class="tabs">
  30. <ul class="tablist">
  31. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  32. <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
  33. <li class="current"><a href="files.html"><span>Files</span></a></li>
  34. </ul>
  35. </div>
  36. <div id="navrow2" class="tabs2">
  37. <ul class="tablist">
  38. <li><a href="files.html"><span>File&#160;List</span></a></li>
  39. <li><a href="globals.html"><span>Globals</span></a></li>
  40. </ul>
  41. </div>
  42. <div id="nav-path" class="navpath">
  43. <ul>
  44. <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li> </ul>
  45. </div>
  46. </div><!-- top -->
  47. <div class="header">
  48. <div class="summary">
  49. <a href="#nested-classes">Data Structures</a> &#124;
  50. <a href="#define-members">Macros</a> &#124;
  51. <a href="#typedef-members">Typedefs</a> &#124;
  52. <a href="#func-members">Functions</a> </div>
  53. <div class="headertitle">
  54. <div class="title">fuse_lowlevel.h File Reference</div> </div>
  55. </div><!--header-->
  56. <div class="contents">
  57. <div class="textblock"><code>#include &quot;<a class="el" href="fuse__common_8h.html">fuse_common.h</a>&quot;</code><br />
  58. <code>#include &lt;utime.h&gt;</code><br />
  59. <code>#include &lt;fcntl.h&gt;</code><br />
  60. <code>#include &lt;sys/types.h&gt;</code><br />
  61. <code>#include &lt;sys/stat.h&gt;</code><br />
  62. <code>#include &lt;sys/statvfs.h&gt;</code><br />
  63. <code>#include &lt;sys/uio.h&gt;</code><br />
  64. <code>#include &quot;fuse_lowlevel_compat.h&quot;</code><br />
  65. </div><table class="memberdecls">
  66. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
  67. Data Structures</h2></td></tr>
  68. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__entry__param.html">fuse_entry_param</a></td></tr>
  69. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  70. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__ctx.html">fuse_ctx</a></td></tr>
  71. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  72. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__lowlevel__ops.html">fuse_lowlevel_ops</a></td></tr>
  73. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  74. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__session__ops.html">fuse_session_ops</a></td></tr>
  75. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  76. <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structfuse__chan__ops.html">fuse_chan_ops</a></td></tr>
  77. <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. </table><table class="memberdecls">
  79. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
  80. Macros</h2></td></tr>
  81. <tr class="memitem:a14d7299559cf05272b838cfc6388ef91"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a14d7299559cf05272b838cfc6388ef91">FUSE_ROOT_ID</a>&#160;&#160;&#160;1</td></tr>
  82. <tr class="separator:a14d7299559cf05272b838cfc6388ef91"><td class="memSeparator" colspan="2">&#160;</td></tr>
  83. </table><table class="memberdecls">
  84. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
  85. Typedefs</h2></td></tr>
  86. <tr class="memitem:ab419149c707451eaf61b75afb852e016"><td class="memItemLeft" align="right" valign="top">typedef unsigned long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#ab419149c707451eaf61b75afb852e016">fuse_ino_t</a></td></tr>
  87. <tr class="separator:ab419149c707451eaf61b75afb852e016"><td class="memSeparator" colspan="2">&#160;</td></tr>
  88. <tr class="memitem:a33e2aa4a8905a05397292ae047cd2257"><td class="memItemLeft" align="right" valign="top">typedef struct fuse_req *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a></td></tr>
  89. <tr class="separator:a33e2aa4a8905a05397292ae047cd2257"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. <tr class="memitem:a5bb8b555b1d9d8a38b8c6cac28d51f1e"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a5bb8b555b1d9d8a38b8c6cac28d51f1e">fuse_interrupt_func_t</a> )(<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req, void *data)</td></tr>
  91. <tr class="separator:a5bb8b555b1d9d8a38b8c6cac28d51f1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  92. </table><table class="memberdecls">
  93. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  94. Functions</h2></td></tr>
  95. <tr class="memitem:a2553c03f9a63c75e609e67f90a3a5d88"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a2553c03f9a63c75e609e67f90a3a5d88">fuse_reply_err</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req, int err)</td></tr>
  96. <tr class="separator:a2553c03f9a63c75e609e67f90a3a5d88"><td class="memSeparator" colspan="2">&#160;</td></tr>
  97. <tr class="memitem:a85ae91390a6704dc26f8d80fed7d5678"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a85ae91390a6704dc26f8d80fed7d5678">fuse_reply_none</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req)</td></tr>
  98. <tr class="separator:a85ae91390a6704dc26f8d80fed7d5678"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. <tr class="memitem:a672c45e126cd240f4bcd59bf9b7e3708"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a672c45e126cd240f4bcd59bf9b7e3708">fuse_reply_entry</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req, const struct <a class="el" href="structfuse__entry__param.html">fuse_entry_param</a> *e)</td></tr>
  100. <tr class="separator:a672c45e126cd240f4bcd59bf9b7e3708"><td class="memSeparator" colspan="2">&#160;</td></tr>
  101. <tr class="memitem:abea78d22349198f8370d7cb91fbf05ed"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#abea78d22349198f8370d7cb91fbf05ed">fuse_reply_create</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req, const struct <a class="el" href="structfuse__entry__param.html">fuse_entry_param</a> *e, const struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *fi)</td></tr>
  102. <tr class="separator:abea78d22349198f8370d7cb91fbf05ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
  103. <tr class="memitem:ad28378dc569019c32acdb4995d70be18"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#ad28378dc569019c32acdb4995d70be18">fuse_reply_attr</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req, const struct stat *attr, double attr_timeout)</td></tr>
  104. <tr class="separator:ad28378dc569019c32acdb4995d70be18"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. <tr class="memitem:a5a5872d7f73f0bd593e00788a4c7bbb7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a5a5872d7f73f0bd593e00788a4c7bbb7">fuse_reply_readlink</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req, const char *link)</td></tr>
  106. <tr class="separator:a5a5872d7f73f0bd593e00788a4c7bbb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  107. <tr class="memitem:a170f8c6b953d70928e83bcecee43bfdc"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a170f8c6b953d70928e83bcecee43bfdc">fuse_reply_open</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req, const struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *fi)</td></tr>
  108. <tr class="separator:a170f8c6b953d70928e83bcecee43bfdc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  109. <tr class="memitem:aa3cfa73f61d6ef461ab5a3fbf859eb97"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#aa3cfa73f61d6ef461ab5a3fbf859eb97">fuse_reply_write</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req, size_t count)</td></tr>
  110. <tr class="separator:aa3cfa73f61d6ef461ab5a3fbf859eb97"><td class="memSeparator" colspan="2">&#160;</td></tr>
  111. <tr class="memitem:a300a88b63ab7c8ca92853a97486448c0"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a300a88b63ab7c8ca92853a97486448c0">fuse_reply_buf</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req, const char *buf, size_t size)</td></tr>
  112. <tr class="separator:a300a88b63ab7c8ca92853a97486448c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  113. <tr class="memitem:a1242694fe0fb6e253a88b57795987302"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a1242694fe0fb6e253a88b57795987302">fuse_reply_data</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req, struct <a class="el" href="structfuse__bufvec.html">fuse_bufvec</a> *bufv, enum <a class="el" href="fuse__common_8h.html#aec0ad71a3e8c357ebe7e87cdecbdbe18">fuse_buf_copy_flags</a> flags)</td></tr>
  114. <tr class="separator:a1242694fe0fb6e253a88b57795987302"><td class="memSeparator" colspan="2">&#160;</td></tr>
  115. <tr class="memitem:a5fbbf591a55f09c02cd54d34bdbfe0e9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a5fbbf591a55f09c02cd54d34bdbfe0e9">fuse_reply_iov</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req, const struct iovec *iov, int count)</td></tr>
  116. <tr class="separator:a5fbbf591a55f09c02cd54d34bdbfe0e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="memitem:aa1d95ec3ca674253baac3639ea10f0ff"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#aa1d95ec3ca674253baac3639ea10f0ff">fuse_reply_statfs</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req, const struct statvfs *stbuf)</td></tr>
  118. <tr class="separator:aa1d95ec3ca674253baac3639ea10f0ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
  119. <tr class="memitem:afed32e5d3e1f54d390103f79ebb8bd42"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#afed32e5d3e1f54d390103f79ebb8bd42">fuse_reply_xattr</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req, size_t count)</td></tr>
  120. <tr class="separator:afed32e5d3e1f54d390103f79ebb8bd42"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <tr class="memitem:a135eda9b7d36fb4eaae2de58526d4f85"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a135eda9b7d36fb4eaae2de58526d4f85">fuse_reply_lock</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req, const struct flock *lock)</td></tr>
  122. <tr class="separator:a135eda9b7d36fb4eaae2de58526d4f85"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. <tr class="memitem:a65431e8196e0533257acad767f7b074f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a65431e8196e0533257acad767f7b074f">fuse_reply_bmap</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req, uint64_t idx)</td></tr>
  124. <tr class="separator:a65431e8196e0533257acad767f7b074f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  125. <tr class="memitem:ad1957bcc8ece8c90f16c42c4daf3053f"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#ad1957bcc8ece8c90f16c42c4daf3053f">fuse_add_direntry</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req, char *buf, size_t bufsize, const char *name, const struct stat *stbuf, off_t off)</td></tr>
  126. <tr class="separator:ad1957bcc8ece8c90f16c42c4daf3053f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  127. <tr class="memitem:a940683d07df12c24f56b4363aed90e4d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a940683d07df12c24f56b4363aed90e4d">fuse_reply_ioctl_retry</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req, const struct iovec *in_iov, size_t in_count, const struct iovec *out_iov, size_t out_count)</td></tr>
  128. <tr class="separator:a940683d07df12c24f56b4363aed90e4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. <tr class="memitem:adf7f34f470c04f276b7091ad3b3dcb31"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#adf7f34f470c04f276b7091ad3b3dcb31">fuse_reply_ioctl</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req, int result, const void *buf, size_t size)</td></tr>
  130. <tr class="separator:adf7f34f470c04f276b7091ad3b3dcb31"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. <tr class="memitem:a37381eb84c39e5fe3af9f3ef507aeeb7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a37381eb84c39e5fe3af9f3ef507aeeb7">fuse_reply_ioctl_iov</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req, int result, const struct iovec *iov, int count)</td></tr>
  132. <tr class="separator:a37381eb84c39e5fe3af9f3ef507aeeb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  133. <tr class="memitem:a2172d260d34c76c25cd601870aee4220"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a2172d260d34c76c25cd601870aee4220">fuse_reply_poll</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req, unsigned revents)</td></tr>
  134. <tr class="separator:a2172d260d34c76c25cd601870aee4220"><td class="memSeparator" colspan="2">&#160;</td></tr>
  135. <tr class="memitem:ab078685b1f480188031fc40aa2e2fbca"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#ab078685b1f480188031fc40aa2e2fbca">fuse_lowlevel_notify_poll</a> (struct fuse_pollhandle *ph)</td></tr>
  136. <tr class="separator:ab078685b1f480188031fc40aa2e2fbca"><td class="memSeparator" colspan="2">&#160;</td></tr>
  137. <tr class="memitem:a05b0e5326257af22062d90809801b730"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a05b0e5326257af22062d90809801b730">fuse_lowlevel_notify_inval_inode</a> (struct fuse_chan *ch, <a class="el" href="fuse__lowlevel_8h.html#ab419149c707451eaf61b75afb852e016">fuse_ino_t</a> ino, off_t off, off_t len)</td></tr>
  138. <tr class="separator:a05b0e5326257af22062d90809801b730"><td class="memSeparator" colspan="2">&#160;</td></tr>
  139. <tr class="memitem:ac250195a1e88bb7c1d10340558b30c8f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#ac250195a1e88bb7c1d10340558b30c8f">fuse_lowlevel_notify_inval_entry</a> (struct fuse_chan *ch, <a class="el" href="fuse__lowlevel_8h.html#ab419149c707451eaf61b75afb852e016">fuse_ino_t</a> parent, const char *name, size_t namelen)</td></tr>
  140. <tr class="separator:ac250195a1e88bb7c1d10340558b30c8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. <tr class="memitem:a94893b3eb83fe2a218e80e43089670a1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a94893b3eb83fe2a218e80e43089670a1">fuse_lowlevel_notify_delete</a> (struct fuse_chan *ch, <a class="el" href="fuse__lowlevel_8h.html#ab419149c707451eaf61b75afb852e016">fuse_ino_t</a> parent, <a class="el" href="fuse__lowlevel_8h.html#ab419149c707451eaf61b75afb852e016">fuse_ino_t</a> child, const char *name, size_t namelen)</td></tr>
  142. <tr class="separator:a94893b3eb83fe2a218e80e43089670a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  143. <tr class="memitem:a4d12f831402f7f25de8bef2d2a82f402"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a4d12f831402f7f25de8bef2d2a82f402">fuse_lowlevel_notify_store</a> (struct fuse_chan *ch, <a class="el" href="fuse__lowlevel_8h.html#ab419149c707451eaf61b75afb852e016">fuse_ino_t</a> ino, off_t offset, struct <a class="el" href="structfuse__bufvec.html">fuse_bufvec</a> *bufv, enum <a class="el" href="fuse__common_8h.html#aec0ad71a3e8c357ebe7e87cdecbdbe18">fuse_buf_copy_flags</a> flags)</td></tr>
  144. <tr class="separator:a4d12f831402f7f25de8bef2d2a82f402"><td class="memSeparator" colspan="2">&#160;</td></tr>
  145. <tr class="memitem:a8b2a260132708b581b00e1066b43faa8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a8b2a260132708b581b00e1066b43faa8">fuse_lowlevel_notify_retrieve</a> (struct fuse_chan *ch, <a class="el" href="fuse__lowlevel_8h.html#ab419149c707451eaf61b75afb852e016">fuse_ino_t</a> ino, size_t size, off_t offset, void *cookie)</td></tr>
  146. <tr class="separator:a8b2a260132708b581b00e1066b43faa8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  147. <tr class="memitem:aab00273c65d124e44abcf2374f9c504b"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#aab00273c65d124e44abcf2374f9c504b">fuse_req_userdata</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req)</td></tr>
  148. <tr class="separator:aab00273c65d124e44abcf2374f9c504b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  149. <tr class="memitem:ad1d1963190eb93ae5667d32d2b387ca1"><td class="memItemLeft" align="right" valign="top">const struct <a class="el" href="structfuse__ctx.html">fuse_ctx</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#ad1d1963190eb93ae5667d32d2b387ca1">fuse_req_ctx</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req)</td></tr>
  150. <tr class="separator:ad1d1963190eb93ae5667d32d2b387ca1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  151. <tr class="memitem:a57f4dabcf044aafcdba6c4682b3a1869"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a57f4dabcf044aafcdba6c4682b3a1869">fuse_req_getgroups</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req, int size, gid_t list[])</td></tr>
  152. <tr class="separator:a57f4dabcf044aafcdba6c4682b3a1869"><td class="memSeparator" colspan="2">&#160;</td></tr>
  153. <tr class="memitem:ab3cdb9744f033e37a72984489343940f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#ab3cdb9744f033e37a72984489343940f">fuse_req_interrupt_func</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req, <a class="el" href="fuse__lowlevel_8h.html#a5bb8b555b1d9d8a38b8c6cac28d51f1e">fuse_interrupt_func_t</a> func, void *data)</td></tr>
  154. <tr class="separator:ab3cdb9744f033e37a72984489343940f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  155. <tr class="memitem:a52674fc627647f33e63c74267f0f1f9d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a52674fc627647f33e63c74267f0f1f9d">fuse_req_interrupted</a> (<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req)</td></tr>
  156. <tr class="separator:a52674fc627647f33e63c74267f0f1f9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  157. <tr class="memitem:ab71e91777def283987cd8a504e926d01"><td class="memItemLeft" align="right" valign="top">struct fuse_session *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#ab71e91777def283987cd8a504e926d01">fuse_lowlevel_new</a> (struct <a class="el" href="structfuse__args.html">fuse_args</a> *args, const struct <a class="el" href="structfuse__lowlevel__ops.html">fuse_lowlevel_ops</a> *op, size_t op_size, void *userdata)</td></tr>
  158. <tr class="separator:ab71e91777def283987cd8a504e926d01"><td class="memSeparator" colspan="2">&#160;</td></tr>
  159. <tr class="memitem:a28b7d09c6e87e3e375743c2ef6e06f0f"><td class="memItemLeft" align="right" valign="top">struct fuse_session *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a28b7d09c6e87e3e375743c2ef6e06f0f">fuse_session_new</a> (struct <a class="el" href="structfuse__session__ops.html">fuse_session_ops</a> *op, void *data)</td></tr>
  160. <tr class="separator:a28b7d09c6e87e3e375743c2ef6e06f0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  161. <tr class="memitem:adcc40a021ee1a21752e3c622f3d3692d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#adcc40a021ee1a21752e3c622f3d3692d">fuse_session_add_chan</a> (struct fuse_session *se, struct fuse_chan *ch)</td></tr>
  162. <tr class="separator:adcc40a021ee1a21752e3c622f3d3692d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  163. <tr class="memitem:a93cb94614503b2249d15629c447dddb9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a93cb94614503b2249d15629c447dddb9">fuse_session_remove_chan</a> (struct fuse_chan *ch)</td></tr>
  164. <tr class="separator:a93cb94614503b2249d15629c447dddb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  165. <tr class="memitem:a8a6664baeee7a580928f959fd4968d5c"><td class="memItemLeft" align="right" valign="top">struct fuse_chan *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a8a6664baeee7a580928f959fd4968d5c">fuse_session_next_chan</a> (struct fuse_session *se, struct fuse_chan *ch)</td></tr>
  166. <tr class="separator:a8a6664baeee7a580928f959fd4968d5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  167. <tr class="memitem:a210cb96700171ccbb5fe84a42b4613d8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a210cb96700171ccbb5fe84a42b4613d8">fuse_session_process</a> (struct fuse_session *se, const char *buf, size_t len, struct fuse_chan *ch)</td></tr>
  168. <tr class="separator:a210cb96700171ccbb5fe84a42b4613d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  169. <tr class="memitem:a58da9b49939ed7e60c906d99bbf7b21a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a58da9b49939ed7e60c906d99bbf7b21a">fuse_session_process_buf</a> (struct fuse_session *se, const struct <a class="el" href="structfuse__buf.html">fuse_buf</a> *buf, struct fuse_chan *ch)</td></tr>
  170. <tr class="separator:a58da9b49939ed7e60c906d99bbf7b21a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  171. <tr class="memitem:a7f7f424f58729d08af8ab7be91d93478"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a7f7f424f58729d08af8ab7be91d93478">fuse_session_receive_buf</a> (struct fuse_session *se, struct <a class="el" href="structfuse__buf.html">fuse_buf</a> *buf, struct fuse_chan **chp)</td></tr>
  172. <tr class="separator:a7f7f424f58729d08af8ab7be91d93478"><td class="memSeparator" colspan="2">&#160;</td></tr>
  173. <tr class="memitem:a08b5503c4e9656f9c4bc88331233cc65"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a08b5503c4e9656f9c4bc88331233cc65">fuse_session_destroy</a> (struct fuse_session *se)</td></tr>
  174. <tr class="separator:a08b5503c4e9656f9c4bc88331233cc65"><td class="memSeparator" colspan="2">&#160;</td></tr>
  175. <tr class="memitem:a198429f3fbc23ef29ef9971271827690"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a198429f3fbc23ef29ef9971271827690">fuse_session_exit</a> (struct fuse_session *se)</td></tr>
  176. <tr class="separator:a198429f3fbc23ef29ef9971271827690"><td class="memSeparator" colspan="2">&#160;</td></tr>
  177. <tr class="memitem:ab3d015de77ae0edeb3157321e7a5c434"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#ab3d015de77ae0edeb3157321e7a5c434">fuse_session_reset</a> (struct fuse_session *se)</td></tr>
  178. <tr class="separator:ab3d015de77ae0edeb3157321e7a5c434"><td class="memSeparator" colspan="2">&#160;</td></tr>
  179. <tr class="memitem:a41b12193fa1520ff658d65679f4e513c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a41b12193fa1520ff658d65679f4e513c">fuse_session_exited</a> (struct fuse_session *se)</td></tr>
  180. <tr class="separator:a41b12193fa1520ff658d65679f4e513c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  181. <tr class="memitem:ac58f69b8c0f7e9fbd45280fb1d68d9f5"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#ac58f69b8c0f7e9fbd45280fb1d68d9f5">fuse_session_data</a> (struct fuse_session *se)</td></tr>
  182. <tr class="separator:ac58f69b8c0f7e9fbd45280fb1d68d9f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  183. <tr class="memitem:a5f1e538aa3287e251afbe985438c4249"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a5f1e538aa3287e251afbe985438c4249">fuse_session_loop</a> (struct fuse_session *se)</td></tr>
  184. <tr class="separator:a5f1e538aa3287e251afbe985438c4249"><td class="memSeparator" colspan="2">&#160;</td></tr>
  185. <tr class="memitem:afeffdee79e361c96b10ce798c56ed2cc"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#afeffdee79e361c96b10ce798c56ed2cc">fuse_session_loop_mt</a> (struct fuse_session *se)</td></tr>
  186. <tr class="separator:afeffdee79e361c96b10ce798c56ed2cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  187. <tr class="memitem:a0a9a9cd6bffbd37ee1971b3dfe183140"><td class="memItemLeft" align="right" valign="top">struct fuse_chan *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a0a9a9cd6bffbd37ee1971b3dfe183140">fuse_chan_new</a> (struct <a class="el" href="structfuse__chan__ops.html">fuse_chan_ops</a> *op, int fd, size_t bufsize, void *data)</td></tr>
  188. <tr class="separator:a0a9a9cd6bffbd37ee1971b3dfe183140"><td class="memSeparator" colspan="2">&#160;</td></tr>
  189. <tr class="memitem:aed5405bd1725a4da8610ce1a1fe49307"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#aed5405bd1725a4da8610ce1a1fe49307">fuse_chan_fd</a> (struct fuse_chan *ch)</td></tr>
  190. <tr class="separator:aed5405bd1725a4da8610ce1a1fe49307"><td class="memSeparator" colspan="2">&#160;</td></tr>
  191. <tr class="memitem:ab2018fab0f56f1b15f6e5fd9ff63641c"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#ab2018fab0f56f1b15f6e5fd9ff63641c">fuse_chan_bufsize</a> (struct fuse_chan *ch)</td></tr>
  192. <tr class="separator:ab2018fab0f56f1b15f6e5fd9ff63641c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  193. <tr class="memitem:a50696378a60c9b5daea8de2fbcf1dc5d"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a50696378a60c9b5daea8de2fbcf1dc5d">fuse_chan_data</a> (struct fuse_chan *ch)</td></tr>
  194. <tr class="separator:a50696378a60c9b5daea8de2fbcf1dc5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  195. <tr class="memitem:a0d0c57c5be8fe4884c10270fcaad4710"><td class="memItemLeft" align="right" valign="top">struct fuse_session *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a0d0c57c5be8fe4884c10270fcaad4710">fuse_chan_session</a> (struct fuse_chan *ch)</td></tr>
  196. <tr class="separator:a0d0c57c5be8fe4884c10270fcaad4710"><td class="memSeparator" colspan="2">&#160;</td></tr>
  197. <tr class="memitem:afa1748ec47595b3ab7be93ad29e55fcb"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#afa1748ec47595b3ab7be93ad29e55fcb">fuse_chan_recv</a> (struct fuse_chan **ch, char *buf, size_t size)</td></tr>
  198. <tr class="separator:afa1748ec47595b3ab7be93ad29e55fcb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  199. <tr class="memitem:ad53f74694d7c8605d956d48ab04b55e9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#ad53f74694d7c8605d956d48ab04b55e9">fuse_chan_send</a> (struct fuse_chan *ch, const struct iovec iov[], size_t count)</td></tr>
  200. <tr class="separator:ad53f74694d7c8605d956d48ab04b55e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  201. <tr class="memitem:a7a88655f900be214db61844337879fa5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fuse__lowlevel_8h.html#a7a88655f900be214db61844337879fa5">fuse_chan_destroy</a> (struct fuse_chan *ch)</td></tr>
  202. <tr class="separator:a7a88655f900be214db61844337879fa5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  203. </table>
  204. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  205. <div class="textblock"><p>Low level API</p>
  206. <p>IMPORTANT: you should define FUSE_USE_VERSION before including this header. To use the newest API define it to 26 (recommended for any new application), to use the old API define it to 24 (default) or 25 </p>
  207. </div><h2 class="groupheader">Macro Definition Documentation</h2>
  208. <a class="anchor" id="a14d7299559cf05272b838cfc6388ef91"></a>
  209. <div class="memitem">
  210. <div class="memproto">
  211. <table class="memname">
  212. <tr>
  213. <td class="memname">#define FUSE_ROOT_ID&#160;&#160;&#160;1</td>
  214. </tr>
  215. </table>
  216. </div><div class="memdoc">
  217. <p>The node ID of the root inode </p>
  218. </div>
  219. </div>
  220. <h2 class="groupheader">Typedef Documentation</h2>
  221. <a class="anchor" id="ab419149c707451eaf61b75afb852e016"></a>
  222. <div class="memitem">
  223. <div class="memproto">
  224. <table class="memname">
  225. <tr>
  226. <td class="memname">typedef unsigned long <a class="el" href="fuse__lowlevel_8h.html#ab419149c707451eaf61b75afb852e016">fuse_ino_t</a></td>
  227. </tr>
  228. </table>
  229. </div><div class="memdoc">
  230. <p>Inode number type </p>
  231. </div>
  232. </div>
  233. <a class="anchor" id="a5bb8b555b1d9d8a38b8c6cac28d51f1e"></a>
  234. <div class="memitem">
  235. <div class="memproto">
  236. <table class="memname">
  237. <tr>
  238. <td class="memname">typedef void(* fuse_interrupt_func_t)(<a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a> req, void *data)</td>
  239. </tr>
  240. </table>
  241. </div><div class="memdoc">
  242. <p>Callback function for an interrupt</p>
  243. <dl class="params"><dt>Parameters</dt><dd>
  244. <table class="params">
  245. <tr><td class="paramname">req</td><td>interrupted request </td></tr>
  246. <tr><td class="paramname">data</td><td>user data </td></tr>
  247. </table>
  248. </dd>
  249. </dl>
  250. </div>
  251. </div>
  252. <a class="anchor" id="a33e2aa4a8905a05397292ae047cd2257"></a>
  253. <div class="memitem">
  254. <div class="memproto">
  255. <table class="memname">
  256. <tr>
  257. <td class="memname">typedef struct fuse_req* <a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a></td>
  258. </tr>
  259. </table>
  260. </div><div class="memdoc">
  261. <p>Request pointer type </p>
  262. </div>
  263. </div>
  264. <h2 class="groupheader">Function Documentation</h2>
  265. <a class="anchor" id="ad1957bcc8ece8c90f16c42c4daf3053f"></a>
  266. <div class="memitem">
  267. <div class="memproto">
  268. <table class="memname">
  269. <tr>
  270. <td class="memname">size_t fuse_add_direntry </td>
  271. <td>(</td>
  272. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  273. <td class="paramname"><em>req</em>, </td>
  274. </tr>
  275. <tr>
  276. <td class="paramkey"></td>
  277. <td></td>
  278. <td class="paramtype">char *&#160;</td>
  279. <td class="paramname"><em>buf</em>, </td>
  280. </tr>
  281. <tr>
  282. <td class="paramkey"></td>
  283. <td></td>
  284. <td class="paramtype">size_t&#160;</td>
  285. <td class="paramname"><em>bufsize</em>, </td>
  286. </tr>
  287. <tr>
  288. <td class="paramkey"></td>
  289. <td></td>
  290. <td class="paramtype">const char *&#160;</td>
  291. <td class="paramname"><em>name</em>, </td>
  292. </tr>
  293. <tr>
  294. <td class="paramkey"></td>
  295. <td></td>
  296. <td class="paramtype">const struct stat *&#160;</td>
  297. <td class="paramname"><em>stbuf</em>, </td>
  298. </tr>
  299. <tr>
  300. <td class="paramkey"></td>
  301. <td></td>
  302. <td class="paramtype">off_t&#160;</td>
  303. <td class="paramname"><em>off</em>&#160;</td>
  304. </tr>
  305. <tr>
  306. <td></td>
  307. <td>)</td>
  308. <td></td><td></td>
  309. </tr>
  310. </table>
  311. </div><div class="memdoc">
  312. <p>Add a directory entry to the buffer</p>
  313. <p>Buffer needs to be large enough to hold the entry. If it's not, then the entry is not filled in but the size of the entry is still returned. The caller can check this by comparing the bufsize parameter with the returned entry size. If the entry size is larger than the buffer size, the operation failed.</p>
  314. <p>From the 'stbuf' argument the st_ino field and bits 12-15 of the st_mode field are used. The other fields are ignored.</p>
  315. <p>Note: offsets do not necessarily represent physical offsets, and could be any marker, that enables the implementation to find a specific point in the directory stream.</p>
  316. <dl class="params"><dt>Parameters</dt><dd>
  317. <table class="params">
  318. <tr><td class="paramname">req</td><td>request handle </td></tr>
  319. <tr><td class="paramname">buf</td><td>the point where the new entry will be added to the buffer </td></tr>
  320. <tr><td class="paramname">bufsize</td><td>remaining size of the buffer </td></tr>
  321. <tr><td class="paramname">name</td><td>the name of the entry </td></tr>
  322. <tr><td class="paramname">stbuf</td><td>the file attributes </td></tr>
  323. <tr><td class="paramname">off</td><td>the offset of the next entry </td></tr>
  324. </table>
  325. </dd>
  326. </dl>
  327. <dl class="section return"><dt>Returns</dt><dd>the space needed for the entry </dd></dl>
  328. </div>
  329. </div>
  330. <a class="anchor" id="ab2018fab0f56f1b15f6e5fd9ff63641c"></a>
  331. <div class="memitem">
  332. <div class="memproto">
  333. <table class="memname">
  334. <tr>
  335. <td class="memname">size_t fuse_chan_bufsize </td>
  336. <td>(</td>
  337. <td class="paramtype">struct fuse_chan *&#160;</td>
  338. <td class="paramname"><em>ch</em></td><td>)</td>
  339. <td></td>
  340. </tr>
  341. </table>
  342. </div><div class="memdoc">
  343. <p>Query the minimal receive buffer size</p>
  344. <dl class="params"><dt>Parameters</dt><dd>
  345. <table class="params">
  346. <tr><td class="paramname">ch</td><td>the channel </td></tr>
  347. </table>
  348. </dd>
  349. </dl>
  350. <dl class="section return"><dt>Returns</dt><dd>the buffer size passed to <a class="el" href="fuse__lowlevel_8h.html#a0a9a9cd6bffbd37ee1971b3dfe183140">fuse_chan_new()</a> </dd></dl>
  351. </div>
  352. </div>
  353. <a class="anchor" id="a50696378a60c9b5daea8de2fbcf1dc5d"></a>
  354. <div class="memitem">
  355. <div class="memproto">
  356. <table class="memname">
  357. <tr>
  358. <td class="memname">void* fuse_chan_data </td>
  359. <td>(</td>
  360. <td class="paramtype">struct fuse_chan *&#160;</td>
  361. <td class="paramname"><em>ch</em></td><td>)</td>
  362. <td></td>
  363. </tr>
  364. </table>
  365. </div><div class="memdoc">
  366. <p>Query the user data</p>
  367. <dl class="params"><dt>Parameters</dt><dd>
  368. <table class="params">
  369. <tr><td class="paramname">ch</td><td>the channel </td></tr>
  370. </table>
  371. </dd>
  372. </dl>
  373. <dl class="section return"><dt>Returns</dt><dd>the user data passed to <a class="el" href="fuse__lowlevel_8h.html#a0a9a9cd6bffbd37ee1971b3dfe183140">fuse_chan_new()</a> </dd></dl>
  374. </div>
  375. </div>
  376. <a class="anchor" id="a7a88655f900be214db61844337879fa5"></a>
  377. <div class="memitem">
  378. <div class="memproto">
  379. <table class="memname">
  380. <tr>
  381. <td class="memname">void fuse_chan_destroy </td>
  382. <td>(</td>
  383. <td class="paramtype">struct fuse_chan *&#160;</td>
  384. <td class="paramname"><em>ch</em></td><td>)</td>
  385. <td></td>
  386. </tr>
  387. </table>
  388. </div><div class="memdoc">
  389. <p>Destroy a channel</p>
  390. <dl class="params"><dt>Parameters</dt><dd>
  391. <table class="params">
  392. <tr><td class="paramname">ch</td><td>the channel </td></tr>
  393. </table>
  394. </dd>
  395. </dl>
  396. </div>
  397. </div>
  398. <a class="anchor" id="aed5405bd1725a4da8610ce1a1fe49307"></a>
  399. <div class="memitem">
  400. <div class="memproto">
  401. <table class="memname">
  402. <tr>
  403. <td class="memname">int fuse_chan_fd </td>
  404. <td>(</td>
  405. <td class="paramtype">struct fuse_chan *&#160;</td>
  406. <td class="paramname"><em>ch</em></td><td>)</td>
  407. <td></td>
  408. </tr>
  409. </table>
  410. </div><div class="memdoc">
  411. <p>Query the file descriptor of the channel</p>
  412. <dl class="params"><dt>Parameters</dt><dd>
  413. <table class="params">
  414. <tr><td class="paramname">ch</td><td>the channel </td></tr>
  415. </table>
  416. </dd>
  417. </dl>
  418. <dl class="section return"><dt>Returns</dt><dd>the file descriptor passed to <a class="el" href="fuse__lowlevel_8h.html#a0a9a9cd6bffbd37ee1971b3dfe183140">fuse_chan_new()</a> </dd></dl>
  419. </div>
  420. </div>
  421. <a class="anchor" id="a0a9a9cd6bffbd37ee1971b3dfe183140"></a>
  422. <div class="memitem">
  423. <div class="memproto">
  424. <table class="memname">
  425. <tr>
  426. <td class="memname">struct fuse_chan* fuse_chan_new </td>
  427. <td>(</td>
  428. <td class="paramtype">struct <a class="el" href="structfuse__chan__ops.html">fuse_chan_ops</a> *&#160;</td>
  429. <td class="paramname"><em>op</em>, </td>
  430. </tr>
  431. <tr>
  432. <td class="paramkey"></td>
  433. <td></td>
  434. <td class="paramtype">int&#160;</td>
  435. <td class="paramname"><em>fd</em>, </td>
  436. </tr>
  437. <tr>
  438. <td class="paramkey"></td>
  439. <td></td>
  440. <td class="paramtype">size_t&#160;</td>
  441. <td class="paramname"><em>bufsize</em>, </td>
  442. </tr>
  443. <tr>
  444. <td class="paramkey"></td>
  445. <td></td>
  446. <td class="paramtype">void *&#160;</td>
  447. <td class="paramname"><em>data</em>&#160;</td>
  448. </tr>
  449. <tr>
  450. <td></td>
  451. <td>)</td>
  452. <td></td><td></td>
  453. </tr>
  454. </table>
  455. </div><div class="memdoc">
  456. <p>Create a new channel</p>
  457. <dl class="params"><dt>Parameters</dt><dd>
  458. <table class="params">
  459. <tr><td class="paramname">op</td><td>channel operations </td></tr>
  460. <tr><td class="paramname">fd</td><td>file descriptor of the channel </td></tr>
  461. <tr><td class="paramname">bufsize</td><td>the minimal receive buffer size </td></tr>
  462. <tr><td class="paramname">data</td><td>user data </td></tr>
  463. </table>
  464. </dd>
  465. </dl>
  466. <dl class="section return"><dt>Returns</dt><dd>the new channel object, or NULL on failure </dd></dl>
  467. </div>
  468. </div>
  469. <a class="anchor" id="afa1748ec47595b3ab7be93ad29e55fcb"></a>
  470. <div class="memitem">
  471. <div class="memproto">
  472. <table class="memname">
  473. <tr>
  474. <td class="memname">int fuse_chan_recv </td>
  475. <td>(</td>
  476. <td class="paramtype">struct fuse_chan **&#160;</td>
  477. <td class="paramname"><em>ch</em>, </td>
  478. </tr>
  479. <tr>
  480. <td class="paramkey"></td>
  481. <td></td>
  482. <td class="paramtype">char *&#160;</td>
  483. <td class="paramname"><em>buf</em>, </td>
  484. </tr>
  485. <tr>
  486. <td class="paramkey"></td>
  487. <td></td>
  488. <td class="paramtype">size_t&#160;</td>
  489. <td class="paramname"><em>size</em>&#160;</td>
  490. </tr>
  491. <tr>
  492. <td></td>
  493. <td>)</td>
  494. <td></td><td></td>
  495. </tr>
  496. </table>
  497. </div><div class="memdoc">
  498. <p>Receive a raw request</p>
  499. <p>A return value of -ENODEV means, that the filesystem was unmounted</p>
  500. <dl class="params"><dt>Parameters</dt><dd>
  501. <table class="params">
  502. <tr><td class="paramname">ch</td><td>pointer to the channel </td></tr>
  503. <tr><td class="paramname">buf</td><td>the buffer to store the request in </td></tr>
  504. <tr><td class="paramname">size</td><td>the size of the buffer </td></tr>
  505. </table>
  506. </dd>
  507. </dl>
  508. <dl class="section return"><dt>Returns</dt><dd>the actual size of the raw request, or -errno on error </dd></dl>
  509. </div>
  510. </div>
  511. <a class="anchor" id="ad53f74694d7c8605d956d48ab04b55e9"></a>
  512. <div class="memitem">
  513. <div class="memproto">
  514. <table class="memname">
  515. <tr>
  516. <td class="memname">int fuse_chan_send </td>
  517. <td>(</td>
  518. <td class="paramtype">struct fuse_chan *&#160;</td>
  519. <td class="paramname"><em>ch</em>, </td>
  520. </tr>
  521. <tr>
  522. <td class="paramkey"></td>
  523. <td></td>
  524. <td class="paramtype">const struct iovec&#160;</td>
  525. <td class="paramname"><em>iov</em>[], </td>
  526. </tr>
  527. <tr>
  528. <td class="paramkey"></td>
  529. <td></td>
  530. <td class="paramtype">size_t&#160;</td>
  531. <td class="paramname"><em>count</em>&#160;</td>
  532. </tr>
  533. <tr>
  534. <td></td>
  535. <td>)</td>
  536. <td></td><td></td>
  537. </tr>
  538. </table>
  539. </div><div class="memdoc">
  540. <p>Send a raw reply</p>
  541. <p>A return value of -ENOENT means, that the request was interrupted, and the reply was discarded</p>
  542. <dl class="params"><dt>Parameters</dt><dd>
  543. <table class="params">
  544. <tr><td class="paramname">ch</td><td>the channel </td></tr>
  545. <tr><td class="paramname">iov</td><td>vector of blocks </td></tr>
  546. <tr><td class="paramname">count</td><td>the number of blocks in vector </td></tr>
  547. </table>
  548. </dd>
  549. </dl>
  550. <dl class="section return"><dt>Returns</dt><dd>zero on success, -errno on failure </dd></dl>
  551. </div>
  552. </div>
  553. <a class="anchor" id="a0d0c57c5be8fe4884c10270fcaad4710"></a>
  554. <div class="memitem">
  555. <div class="memproto">
  556. <table class="memname">
  557. <tr>
  558. <td class="memname">struct fuse_session* fuse_chan_session </td>
  559. <td>(</td>
  560. <td class="paramtype">struct fuse_chan *&#160;</td>
  561. <td class="paramname"><em>ch</em></td><td>)</td>
  562. <td></td>
  563. </tr>
  564. </table>
  565. </div><div class="memdoc">
  566. <p>Query the session to which this channel is assigned</p>
  567. <dl class="params"><dt>Parameters</dt><dd>
  568. <table class="params">
  569. <tr><td class="paramname">ch</td><td>the channel </td></tr>
  570. </table>
  571. </dd>
  572. </dl>
  573. <dl class="section return"><dt>Returns</dt><dd>the session, or NULL if the channel is not assigned </dd></dl>
  574. </div>
  575. </div>
  576. <a class="anchor" id="ab71e91777def283987cd8a504e926d01"></a>
  577. <div class="memitem">
  578. <div class="memproto">
  579. <table class="memname">
  580. <tr>
  581. <td class="memname">struct fuse_session* fuse_lowlevel_new </td>
  582. <td>(</td>
  583. <td class="paramtype">struct <a class="el" href="structfuse__args.html">fuse_args</a> *&#160;</td>
  584. <td class="paramname"><em>args</em>, </td>
  585. </tr>
  586. <tr>
  587. <td class="paramkey"></td>
  588. <td></td>
  589. <td class="paramtype">const struct <a class="el" href="structfuse__lowlevel__ops.html">fuse_lowlevel_ops</a> *&#160;</td>
  590. <td class="paramname"><em>op</em>, </td>
  591. </tr>
  592. <tr>
  593. <td class="paramkey"></td>
  594. <td></td>
  595. <td class="paramtype">size_t&#160;</td>
  596. <td class="paramname"><em>op_size</em>, </td>
  597. </tr>
  598. <tr>
  599. <td class="paramkey"></td>
  600. <td></td>
  601. <td class="paramtype">void *&#160;</td>
  602. <td class="paramname"><em>userdata</em>&#160;</td>
  603. </tr>
  604. <tr>
  605. <td></td>
  606. <td>)</td>
  607. <td></td><td></td>
  608. </tr>
  609. </table>
  610. </div><div class="memdoc">
  611. <p>Create a low level session</p>
  612. <dl class="params"><dt>Parameters</dt><dd>
  613. <table class="params">
  614. <tr><td class="paramname">args</td><td>argument vector </td></tr>
  615. <tr><td class="paramname">op</td><td>the low level filesystem operations </td></tr>
  616. <tr><td class="paramname">op_size</td><td>sizeof(struct fuse_lowlevel_ops) </td></tr>
  617. <tr><td class="paramname">userdata</td><td>user data </td></tr>
  618. </table>
  619. </dd>
  620. </dl>
  621. <dl class="section return"><dt>Returns</dt><dd>the created session object, or NULL on failure </dd></dl>
  622. </div>
  623. </div>
  624. <a class="anchor" id="a94893b3eb83fe2a218e80e43089670a1"></a>
  625. <div class="memitem">
  626. <div class="memproto">
  627. <table class="memname">
  628. <tr>
  629. <td class="memname">int fuse_lowlevel_notify_delete </td>
  630. <td>(</td>
  631. <td class="paramtype">struct fuse_chan *&#160;</td>
  632. <td class="paramname"><em>ch</em>, </td>
  633. </tr>
  634. <tr>
  635. <td class="paramkey"></td>
  636. <td></td>
  637. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#ab419149c707451eaf61b75afb852e016">fuse_ino_t</a>&#160;</td>
  638. <td class="paramname"><em>parent</em>, </td>
  639. </tr>
  640. <tr>
  641. <td class="paramkey"></td>
  642. <td></td>
  643. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#ab419149c707451eaf61b75afb852e016">fuse_ino_t</a>&#160;</td>
  644. <td class="paramname"><em>child</em>, </td>
  645. </tr>
  646. <tr>
  647. <td class="paramkey"></td>
  648. <td></td>
  649. <td class="paramtype">const char *&#160;</td>
  650. <td class="paramname"><em>name</em>, </td>
  651. </tr>
  652. <tr>
  653. <td class="paramkey"></td>
  654. <td></td>
  655. <td class="paramtype">size_t&#160;</td>
  656. <td class="paramname"><em>namelen</em>&#160;</td>
  657. </tr>
  658. <tr>
  659. <td></td>
  660. <td>)</td>
  661. <td></td><td></td>
  662. </tr>
  663. </table>
  664. </div><div class="memdoc">
  665. <p>Notify to invalidate parent attributes and delete the dentry matching parent/name if the dentry's inode number matches child (otherwise it will invalidate the matching dentry).</p>
  666. <p>To avoid a deadlock don't call this function from a filesystem operation and don't call it with a lock held that can also be held by a filesystem operation.</p>
  667. <dl class="params"><dt>Parameters</dt><dd>
  668. <table class="params">
  669. <tr><td class="paramname">ch</td><td>the channel through which to send the notification </td></tr>
  670. <tr><td class="paramname">parent</td><td>inode number </td></tr>
  671. <tr><td class="paramname">child</td><td>inode number </td></tr>
  672. <tr><td class="paramname">name</td><td>file name </td></tr>
  673. <tr><td class="paramname">namelen</td><td>strlen() of file name </td></tr>
  674. </table>
  675. </dd>
  676. </dl>
  677. <dl class="section return"><dt>Returns</dt><dd>zero for success, -errno for failure </dd></dl>
  678. </div>
  679. </div>
  680. <a class="anchor" id="ac250195a1e88bb7c1d10340558b30c8f"></a>
  681. <div class="memitem">
  682. <div class="memproto">
  683. <table class="memname">
  684. <tr>
  685. <td class="memname">int fuse_lowlevel_notify_inval_entry </td>
  686. <td>(</td>
  687. <td class="paramtype">struct fuse_chan *&#160;</td>
  688. <td class="paramname"><em>ch</em>, </td>
  689. </tr>
  690. <tr>
  691. <td class="paramkey"></td>
  692. <td></td>
  693. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#ab419149c707451eaf61b75afb852e016">fuse_ino_t</a>&#160;</td>
  694. <td class="paramname"><em>parent</em>, </td>
  695. </tr>
  696. <tr>
  697. <td class="paramkey"></td>
  698. <td></td>
  699. <td class="paramtype">const char *&#160;</td>
  700. <td class="paramname"><em>name</em>, </td>
  701. </tr>
  702. <tr>
  703. <td class="paramkey"></td>
  704. <td></td>
  705. <td class="paramtype">size_t&#160;</td>
  706. <td class="paramname"><em>namelen</em>&#160;</td>
  707. </tr>
  708. <tr>
  709. <td></td>
  710. <td>)</td>
  711. <td></td><td></td>
  712. </tr>
  713. </table>
  714. </div><div class="memdoc">
  715. <p>Notify to invalidate parent attributes and the dentry matching parent/name</p>
  716. <p>To avoid a deadlock don't call this function from a filesystem operation and don't call it with a lock held that can also be held by a filesystem operation.</p>
  717. <dl class="params"><dt>Parameters</dt><dd>
  718. <table class="params">
  719. <tr><td class="paramname">ch</td><td>the channel through which to send the invalidation </td></tr>
  720. <tr><td class="paramname">parent</td><td>inode number </td></tr>
  721. <tr><td class="paramname">name</td><td>file name </td></tr>
  722. <tr><td class="paramname">namelen</td><td>strlen() of file name </td></tr>
  723. </table>
  724. </dd>
  725. </dl>
  726. <dl class="section return"><dt>Returns</dt><dd>zero for success, -errno for failure </dd></dl>
  727. </div>
  728. </div>
  729. <a class="anchor" id="a05b0e5326257af22062d90809801b730"></a>
  730. <div class="memitem">
  731. <div class="memproto">
  732. <table class="memname">
  733. <tr>
  734. <td class="memname">int fuse_lowlevel_notify_inval_inode </td>
  735. <td>(</td>
  736. <td class="paramtype">struct fuse_chan *&#160;</td>
  737. <td class="paramname"><em>ch</em>, </td>
  738. </tr>
  739. <tr>
  740. <td class="paramkey"></td>
  741. <td></td>
  742. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#ab419149c707451eaf61b75afb852e016">fuse_ino_t</a>&#160;</td>
  743. <td class="paramname"><em>ino</em>, </td>
  744. </tr>
  745. <tr>
  746. <td class="paramkey"></td>
  747. <td></td>
  748. <td class="paramtype">off_t&#160;</td>
  749. <td class="paramname"><em>off</em>, </td>
  750. </tr>
  751. <tr>
  752. <td class="paramkey"></td>
  753. <td></td>
  754. <td class="paramtype">off_t&#160;</td>
  755. <td class="paramname"><em>len</em>&#160;</td>
  756. </tr>
  757. <tr>
  758. <td></td>
  759. <td>)</td>
  760. <td></td><td></td>
  761. </tr>
  762. </table>
  763. </div><div class="memdoc">
  764. <p>Notify to invalidate cache for an inode</p>
  765. <dl class="params"><dt>Parameters</dt><dd>
  766. <table class="params">
  767. <tr><td class="paramname">ch</td><td>the channel through which to send the invalidation </td></tr>
  768. <tr><td class="paramname">ino</td><td>the inode number </td></tr>
  769. <tr><td class="paramname">off</td><td>the offset in the inode where to start invalidating or negative to invalidate attributes only </td></tr>
  770. <tr><td class="paramname">len</td><td>the amount of cache to invalidate or 0 for all </td></tr>
  771. </table>
  772. </dd>
  773. </dl>
  774. <dl class="section return"><dt>Returns</dt><dd>zero for success, -errno for failure </dd></dl>
  775. </div>
  776. </div>
  777. <a class="anchor" id="ab078685b1f480188031fc40aa2e2fbca"></a>
  778. <div class="memitem">
  779. <div class="memproto">
  780. <table class="memname">
  781. <tr>
  782. <td class="memname">int fuse_lowlevel_notify_poll </td>
  783. <td>(</td>
  784. <td class="paramtype">struct fuse_pollhandle *&#160;</td>
  785. <td class="paramname"><em>ph</em></td><td>)</td>
  786. <td></td>
  787. </tr>
  788. </table>
  789. </div><div class="memdoc">
  790. <p>Notify IO readiness event</p>
  791. <p>For more information, please read comment for poll operation.</p>
  792. <dl class="params"><dt>Parameters</dt><dd>
  793. <table class="params">
  794. <tr><td class="paramname">ph</td><td>poll handle to notify IO readiness event for </td></tr>
  795. </table>
  796. </dd>
  797. </dl>
  798. </div>
  799. </div>
  800. <a class="anchor" id="a8b2a260132708b581b00e1066b43faa8"></a>
  801. <div class="memitem">
  802. <div class="memproto">
  803. <table class="memname">
  804. <tr>
  805. <td class="memname">int fuse_lowlevel_notify_retrieve </td>
  806. <td>(</td>
  807. <td class="paramtype">struct fuse_chan *&#160;</td>
  808. <td class="paramname"><em>ch</em>, </td>
  809. </tr>
  810. <tr>
  811. <td class="paramkey"></td>
  812. <td></td>
  813. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#ab419149c707451eaf61b75afb852e016">fuse_ino_t</a>&#160;</td>
  814. <td class="paramname"><em>ino</em>, </td>
  815. </tr>
  816. <tr>
  817. <td class="paramkey"></td>
  818. <td></td>
  819. <td class="paramtype">size_t&#160;</td>
  820. <td class="paramname"><em>size</em>, </td>
  821. </tr>
  822. <tr>
  823. <td class="paramkey"></td>
  824. <td></td>
  825. <td class="paramtype">off_t&#160;</td>
  826. <td class="paramname"><em>offset</em>, </td>
  827. </tr>
  828. <tr>
  829. <td class="paramkey"></td>
  830. <td></td>
  831. <td class="paramtype">void *&#160;</td>
  832. <td class="paramname"><em>cookie</em>&#160;</td>
  833. </tr>
  834. <tr>
  835. <td></td>
  836. <td>)</td>
  837. <td></td><td></td>
  838. </tr>
  839. </table>
  840. </div><div class="memdoc">
  841. <p>Retrieve data from the kernel buffers</p>
  842. <p>Retrieve data in the kernel buffers belonging to the given inode. If successful then the retrieve_reply() method will be called with the returned data.</p>
  843. <p>Only present pages are returned in the retrieve reply. Retrieving stops when it finds a non-present page and only data prior to that is returned.</p>
  844. <p>If this function returns an error, then the retrieve will not be completed and no reply will be sent.</p>
  845. <p>This function doesn't change the dirty state of pages in the kernel buffer. For dirty pages the write() method will be called regardless of having been retrieved previously.</p>
  846. <dl class="params"><dt>Parameters</dt><dd>
  847. <table class="params">
  848. <tr><td class="paramname">ch</td><td>the channel through which to send the invalidation </td></tr>
  849. <tr><td class="paramname">ino</td><td>the inode number </td></tr>
  850. <tr><td class="paramname">size</td><td>the number of bytes to retrieve </td></tr>
  851. <tr><td class="paramname">offset</td><td>the starting offset into the file to retrieve from </td></tr>
  852. <tr><td class="paramname">cookie</td><td>user data to supply to the reply callback </td></tr>
  853. </table>
  854. </dd>
  855. </dl>
  856. <dl class="section return"><dt>Returns</dt><dd>zero for success, -errno for failure </dd></dl>
  857. </div>
  858. </div>
  859. <a class="anchor" id="a4d12f831402f7f25de8bef2d2a82f402"></a>
  860. <div class="memitem">
  861. <div class="memproto">
  862. <table class="memname">
  863. <tr>
  864. <td class="memname">int fuse_lowlevel_notify_store </td>
  865. <td>(</td>
  866. <td class="paramtype">struct fuse_chan *&#160;</td>
  867. <td class="paramname"><em>ch</em>, </td>
  868. </tr>
  869. <tr>
  870. <td class="paramkey"></td>
  871. <td></td>
  872. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#ab419149c707451eaf61b75afb852e016">fuse_ino_t</a>&#160;</td>
  873. <td class="paramname"><em>ino</em>, </td>
  874. </tr>
  875. <tr>
  876. <td class="paramkey"></td>
  877. <td></td>
  878. <td class="paramtype">off_t&#160;</td>
  879. <td class="paramname"><em>offset</em>, </td>
  880. </tr>
  881. <tr>
  882. <td class="paramkey"></td>
  883. <td></td>
  884. <td class="paramtype">struct <a class="el" href="structfuse__bufvec.html">fuse_bufvec</a> *&#160;</td>
  885. <td class="paramname"><em>bufv</em>, </td>
  886. </tr>
  887. <tr>
  888. <td class="paramkey"></td>
  889. <td></td>
  890. <td class="paramtype">enum <a class="el" href="fuse__common_8h.html#aec0ad71a3e8c357ebe7e87cdecbdbe18">fuse_buf_copy_flags</a>&#160;</td>
  891. <td class="paramname"><em>flags</em>&#160;</td>
  892. </tr>
  893. <tr>
  894. <td></td>
  895. <td>)</td>
  896. <td></td><td></td>
  897. </tr>
  898. </table>
  899. </div><div class="memdoc">
  900. <p>Store data to the kernel buffers</p>
  901. <p>Synchronously store data in the kernel buffers belonging to the given inode. The stored data is marked up-to-date (no read will be performed against it, unless it's invalidated or evicted from the cache).</p>
  902. <p>If the stored data overflows the current file size, then the size is extended, similarly to a write(2) on the filesystem.</p>
  903. <p>If this function returns an error, then the store wasn't fully completed, but it may have been partially completed.</p>
  904. <dl class="params"><dt>Parameters</dt><dd>
  905. <table class="params">
  906. <tr><td class="paramname">ch</td><td>the channel through which to send the invalidation </td></tr>
  907. <tr><td class="paramname">ino</td><td>the inode number </td></tr>
  908. <tr><td class="paramname">offset</td><td>the starting offset into the file to store to </td></tr>
  909. <tr><td class="paramname">bufv</td><td>buffer vector </td></tr>
  910. <tr><td class="paramname">flags</td><td>flags controlling the copy </td></tr>
  911. </table>
  912. </dd>
  913. </dl>
  914. <dl class="section return"><dt>Returns</dt><dd>zero for success, -errno for failure </dd></dl>
  915. </div>
  916. </div>
  917. <a class="anchor" id="ad28378dc569019c32acdb4995d70be18"></a>
  918. <div class="memitem">
  919. <div class="memproto">
  920. <table class="memname">
  921. <tr>
  922. <td class="memname">int fuse_reply_attr </td>
  923. <td>(</td>
  924. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  925. <td class="paramname"><em>req</em>, </td>
  926. </tr>
  927. <tr>
  928. <td class="paramkey"></td>
  929. <td></td>
  930. <td class="paramtype">const struct stat *&#160;</td>
  931. <td class="paramname"><em>attr</em>, </td>
  932. </tr>
  933. <tr>
  934. <td class="paramkey"></td>
  935. <td></td>
  936. <td class="paramtype">double&#160;</td>
  937. <td class="paramname"><em>attr_timeout</em>&#160;</td>
  938. </tr>
  939. <tr>
  940. <td></td>
  941. <td>)</td>
  942. <td></td><td></td>
  943. </tr>
  944. </table>
  945. </div><div class="memdoc">
  946. <p>Reply with attributes</p>
  947. <p>Possible requests: getattr, setattr</p>
  948. <dl class="params"><dt>Parameters</dt><dd>
  949. <table class="params">
  950. <tr><td class="paramname">req</td><td>request handle </td></tr>
  951. <tr><td class="paramname">attr</td><td>the attributes </td></tr>
  952. <tr><td class="paramname">attr_timeout</td><td>validity timeout (in seconds) for the attributes </td></tr>
  953. </table>
  954. </dd>
  955. </dl>
  956. <dl class="section return"><dt>Returns</dt><dd>zero for success, -errno for failure to send reply </dd></dl>
  957. </div>
  958. </div>
  959. <a class="anchor" id="a65431e8196e0533257acad767f7b074f"></a>
  960. <div class="memitem">
  961. <div class="memproto">
  962. <table class="memname">
  963. <tr>
  964. <td class="memname">int fuse_reply_bmap </td>
  965. <td>(</td>
  966. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  967. <td class="paramname"><em>req</em>, </td>
  968. </tr>
  969. <tr>
  970. <td class="paramkey"></td>
  971. <td></td>
  972. <td class="paramtype">uint64_t&#160;</td>
  973. <td class="paramname"><em>idx</em>&#160;</td>
  974. </tr>
  975. <tr>
  976. <td></td>
  977. <td>)</td>
  978. <td></td><td></td>
  979. </tr>
  980. </table>
  981. </div><div class="memdoc">
  982. <p>Reply with block index</p>
  983. <p>Possible requests: bmap</p>
  984. <dl class="params"><dt>Parameters</dt><dd>
  985. <table class="params">
  986. <tr><td class="paramname">req</td><td>request handle </td></tr>
  987. <tr><td class="paramname">idx</td><td>block index within device </td></tr>
  988. </table>
  989. </dd>
  990. </dl>
  991. <dl class="section return"><dt>Returns</dt><dd>zero for success, -errno for failure to send reply </dd></dl>
  992. </div>
  993. </div>
  994. <a class="anchor" id="a300a88b63ab7c8ca92853a97486448c0"></a>
  995. <div class="memitem">
  996. <div class="memproto">
  997. <table class="memname">
  998. <tr>
  999. <td class="memname">int fuse_reply_buf </td>
  1000. <td>(</td>
  1001. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  1002. <td class="paramname"><em>req</em>, </td>
  1003. </tr>
  1004. <tr>
  1005. <td class="paramkey"></td>
  1006. <td></td>
  1007. <td class="paramtype">const char *&#160;</td>
  1008. <td class="paramname"><em>buf</em>, </td>
  1009. </tr>
  1010. <tr>
  1011. <td class="paramkey"></td>
  1012. <td></td>
  1013. <td class="paramtype">size_t&#160;</td>
  1014. <td class="paramname"><em>size</em>&#160;</td>
  1015. </tr>
  1016. <tr>
  1017. <td></td>
  1018. <td>)</td>
  1019. <td></td><td></td>
  1020. </tr>
  1021. </table>
  1022. </div><div class="memdoc">
  1023. <p>Reply with data</p>
  1024. <p>Possible requests: read, readdir, getxattr, listxattr</p>
  1025. <dl class="params"><dt>Parameters</dt><dd>
  1026. <table class="params">
  1027. <tr><td class="paramname">req</td><td>request handle </td></tr>
  1028. <tr><td class="paramname">buf</td><td>buffer containing data </td></tr>
  1029. <tr><td class="paramname">size</td><td>the size of data in bytes </td></tr>
  1030. </table>
  1031. </dd>
  1032. </dl>
  1033. <dl class="section return"><dt>Returns</dt><dd>zero for success, -errno for failure to send reply </dd></dl>
  1034. </div>
  1035. </div>
  1036. <a class="anchor" id="abea78d22349198f8370d7cb91fbf05ed"></a>
  1037. <div class="memitem">
  1038. <div class="memproto">
  1039. <table class="memname">
  1040. <tr>
  1041. <td class="memname">int fuse_reply_create </td>
  1042. <td>(</td>
  1043. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  1044. <td class="paramname"><em>req</em>, </td>
  1045. </tr>
  1046. <tr>
  1047. <td class="paramkey"></td>
  1048. <td></td>
  1049. <td class="paramtype">const struct <a class="el" href="structfuse__entry__param.html">fuse_entry_param</a> *&#160;</td>
  1050. <td class="paramname"><em>e</em>, </td>
  1051. </tr>
  1052. <tr>
  1053. <td class="paramkey"></td>
  1054. <td></td>
  1055. <td class="paramtype">const struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *&#160;</td>
  1056. <td class="paramname"><em>fi</em>&#160;</td>
  1057. </tr>
  1058. <tr>
  1059. <td></td>
  1060. <td>)</td>
  1061. <td></td><td></td>
  1062. </tr>
  1063. </table>
  1064. </div><div class="memdoc">
  1065. <p>Reply with a directory entry and open parameters</p>
  1066. <p>currently the following members of 'fi' are used: fh, direct_io, keep_cache</p>
  1067. <p>Possible requests: create</p>
  1068. <p>Side effects: increments the lookup count on success</p>
  1069. <dl class="params"><dt>Parameters</dt><dd>
  1070. <table class="params">
  1071. <tr><td class="paramname">req</td><td>request handle </td></tr>
  1072. <tr><td class="paramname">e</td><td>the entry parameters </td></tr>
  1073. <tr><td class="paramname">fi</td><td>file information </td></tr>
  1074. </table>
  1075. </dd>
  1076. </dl>
  1077. <dl class="section return"><dt>Returns</dt><dd>zero for success, -errno for failure to send reply </dd></dl>
  1078. </div>
  1079. </div>
  1080. <a class="anchor" id="a1242694fe0fb6e253a88b57795987302"></a>
  1081. <div class="memitem">
  1082. <div class="memproto">
  1083. <table class="memname">
  1084. <tr>
  1085. <td class="memname">int fuse_reply_data </td>
  1086. <td>(</td>
  1087. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  1088. <td class="paramname"><em>req</em>, </td>
  1089. </tr>
  1090. <tr>
  1091. <td class="paramkey"></td>
  1092. <td></td>
  1093. <td class="paramtype">struct <a class="el" href="structfuse__bufvec.html">fuse_bufvec</a> *&#160;</td>
  1094. <td class="paramname"><em>bufv</em>, </td>
  1095. </tr>
  1096. <tr>
  1097. <td class="paramkey"></td>
  1098. <td></td>
  1099. <td class="paramtype">enum <a class="el" href="fuse__common_8h.html#aec0ad71a3e8c357ebe7e87cdecbdbe18">fuse_buf_copy_flags</a>&#160;</td>
  1100. <td class="paramname"><em>flags</em>&#160;</td>
  1101. </tr>
  1102. <tr>
  1103. <td></td>
  1104. <td>)</td>
  1105. <td></td><td></td>
  1106. </tr>
  1107. </table>
  1108. </div><div class="memdoc">
  1109. <p>Reply with data copied/moved from buffer(s)</p>
  1110. <p>Possible requests: read, readdir, getxattr, listxattr</p>
  1111. <dl class="params"><dt>Parameters</dt><dd>
  1112. <table class="params">
  1113. <tr><td class="paramname">req</td><td>request handle </td></tr>
  1114. <tr><td class="paramname">bufv</td><td>buffer vector </td></tr>
  1115. <tr><td class="paramname">flags</td><td>flags controlling the copy </td></tr>
  1116. </table>
  1117. </dd>
  1118. </dl>
  1119. <dl class="section return"><dt>Returns</dt><dd>zero for success, -errno for failure to send reply </dd></dl>
  1120. </div>
  1121. </div>
  1122. <a class="anchor" id="a672c45e126cd240f4bcd59bf9b7e3708"></a>
  1123. <div class="memitem">
  1124. <div class="memproto">
  1125. <table class="memname">
  1126. <tr>
  1127. <td class="memname">int fuse_reply_entry </td>
  1128. <td>(</td>
  1129. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  1130. <td class="paramname"><em>req</em>, </td>
  1131. </tr>
  1132. <tr>
  1133. <td class="paramkey"></td>
  1134. <td></td>
  1135. <td class="paramtype">const struct <a class="el" href="structfuse__entry__param.html">fuse_entry_param</a> *&#160;</td>
  1136. <td class="paramname"><em>e</em>&#160;</td>
  1137. </tr>
  1138. <tr>
  1139. <td></td>
  1140. <td>)</td>
  1141. <td></td><td></td>
  1142. </tr>
  1143. </table>
  1144. </div><div class="memdoc">
  1145. <p>Reply with a directory entry</p>
  1146. <p>Possible requests: lookup, mknod, mkdir, symlink, link</p>
  1147. <p>Side effects: increments the lookup count on success</p>
  1148. <dl class="params"><dt>Parameters</dt><dd>
  1149. <table class="params">
  1150. <tr><td class="paramname">req</td><td>request handle </td></tr>
  1151. <tr><td class="paramname">e</td><td>the entry parameters </td></tr>
  1152. </table>
  1153. </dd>
  1154. </dl>
  1155. <dl class="section return"><dt>Returns</dt><dd>zero for success, -errno for failure to send reply </dd></dl>
  1156. </div>
  1157. </div>
  1158. <a class="anchor" id="a2553c03f9a63c75e609e67f90a3a5d88"></a>
  1159. <div class="memitem">
  1160. <div class="memproto">
  1161. <table class="memname">
  1162. <tr>
  1163. <td class="memname">int fuse_reply_err </td>
  1164. <td>(</td>
  1165. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  1166. <td class="paramname"><em>req</em>, </td>
  1167. </tr>
  1168. <tr>
  1169. <td class="paramkey"></td>
  1170. <td></td>
  1171. <td class="paramtype">int&#160;</td>
  1172. <td class="paramname"><em>err</em>&#160;</td>
  1173. </tr>
  1174. <tr>
  1175. <td></td>
  1176. <td>)</td>
  1177. <td></td><td></td>
  1178. </tr>
  1179. </table>
  1180. </div><div class="memdoc">
  1181. <p>Reply with an error code or success</p>
  1182. <p>Possible requests: all except forget</p>
  1183. <p>unlink, rmdir, rename, flush, release, fsync, fsyncdir, setxattr, removexattr and setlk may send a zero code</p>
  1184. <dl class="params"><dt>Parameters</dt><dd>
  1185. <table class="params">
  1186. <tr><td class="paramname">req</td><td>request handle </td></tr>
  1187. <tr><td class="paramname">err</td><td>the positive error value, or zero for success </td></tr>
  1188. </table>
  1189. </dd>
  1190. </dl>
  1191. <dl class="section return"><dt>Returns</dt><dd>zero for success, -errno for failure to send reply </dd></dl>
  1192. </div>
  1193. </div>
  1194. <a class="anchor" id="adf7f34f470c04f276b7091ad3b3dcb31"></a>
  1195. <div class="memitem">
  1196. <div class="memproto">
  1197. <table class="memname">
  1198. <tr>
  1199. <td class="memname">int fuse_reply_ioctl </td>
  1200. <td>(</td>
  1201. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  1202. <td class="paramname"><em>req</em>, </td>
  1203. </tr>
  1204. <tr>
  1205. <td class="paramkey"></td>
  1206. <td></td>
  1207. <td class="paramtype">int&#160;</td>
  1208. <td class="paramname"><em>result</em>, </td>
  1209. </tr>
  1210. <tr>
  1211. <td class="paramkey"></td>
  1212. <td></td>
  1213. <td class="paramtype">const void *&#160;</td>
  1214. <td class="paramname"><em>buf</em>, </td>
  1215. </tr>
  1216. <tr>
  1217. <td class="paramkey"></td>
  1218. <td></td>
  1219. <td class="paramtype">size_t&#160;</td>
  1220. <td class="paramname"><em>size</em>&#160;</td>
  1221. </tr>
  1222. <tr>
  1223. <td></td>
  1224. <td>)</td>
  1225. <td></td><td></td>
  1226. </tr>
  1227. </table>
  1228. </div><div class="memdoc">
  1229. <p>Reply to finish ioctl</p>
  1230. <p>Possible requests: ioctl</p>
  1231. <dl class="params"><dt>Parameters</dt><dd>
  1232. <table class="params">
  1233. <tr><td class="paramname">req</td><td>request handle </td></tr>
  1234. <tr><td class="paramname">result</td><td>result to be passed to the caller </td></tr>
  1235. <tr><td class="paramname">buf</td><td>buffer containing output data </td></tr>
  1236. <tr><td class="paramname">size</td><td>length of output data </td></tr>
  1237. </table>
  1238. </dd>
  1239. </dl>
  1240. </div>
  1241. </div>
  1242. <a class="anchor" id="a37381eb84c39e5fe3af9f3ef507aeeb7"></a>
  1243. <div class="memitem">
  1244. <div class="memproto">
  1245. <table class="memname">
  1246. <tr>
  1247. <td class="memname">int fuse_reply_ioctl_iov </td>
  1248. <td>(</td>
  1249. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  1250. <td class="paramname"><em>req</em>, </td>
  1251. </tr>
  1252. <tr>
  1253. <td class="paramkey"></td>
  1254. <td></td>
  1255. <td class="paramtype">int&#160;</td>
  1256. <td class="paramname"><em>result</em>, </td>
  1257. </tr>
  1258. <tr>
  1259. <td class="paramkey"></td>
  1260. <td></td>
  1261. <td class="paramtype">const struct iovec *&#160;</td>
  1262. <td class="paramname"><em>iov</em>, </td>
  1263. </tr>
  1264. <tr>
  1265. <td class="paramkey"></td>
  1266. <td></td>
  1267. <td class="paramtype">int&#160;</td>
  1268. <td class="paramname"><em>count</em>&#160;</td>
  1269. </tr>
  1270. <tr>
  1271. <td></td>
  1272. <td>)</td>
  1273. <td></td><td></td>
  1274. </tr>
  1275. </table>
  1276. </div><div class="memdoc">
  1277. <p>Reply to finish ioctl with iov buffer</p>
  1278. <p>Possible requests: ioctl</p>
  1279. <dl class="params"><dt>Parameters</dt><dd>
  1280. <table class="params">
  1281. <tr><td class="paramname">req</td><td>request handle </td></tr>
  1282. <tr><td class="paramname">result</td><td>result to be passed to the caller </td></tr>
  1283. <tr><td class="paramname">iov</td><td>the vector containing the data </td></tr>
  1284. <tr><td class="paramname">count</td><td>the size of vector </td></tr>
  1285. </table>
  1286. </dd>
  1287. </dl>
  1288. </div>
  1289. </div>
  1290. <a class="anchor" id="a940683d07df12c24f56b4363aed90e4d"></a>
  1291. <div class="memitem">
  1292. <div class="memproto">
  1293. <table class="memname">
  1294. <tr>
  1295. <td class="memname">int fuse_reply_ioctl_retry </td>
  1296. <td>(</td>
  1297. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  1298. <td class="paramname"><em>req</em>, </td>
  1299. </tr>
  1300. <tr>
  1301. <td class="paramkey"></td>
  1302. <td></td>
  1303. <td class="paramtype">const struct iovec *&#160;</td>
  1304. <td class="paramname"><em>in_iov</em>, </td>
  1305. </tr>
  1306. <tr>
  1307. <td class="paramkey"></td>
  1308. <td></td>
  1309. <td class="paramtype">size_t&#160;</td>
  1310. <td class="paramname"><em>in_count</em>, </td>
  1311. </tr>
  1312. <tr>
  1313. <td class="paramkey"></td>
  1314. <td></td>
  1315. <td class="paramtype">const struct iovec *&#160;</td>
  1316. <td class="paramname"><em>out_iov</em>, </td>
  1317. </tr>
  1318. <tr>
  1319. <td class="paramkey"></td>
  1320. <td></td>
  1321. <td class="paramtype">size_t&#160;</td>
  1322. <td class="paramname"><em>out_count</em>&#160;</td>
  1323. </tr>
  1324. <tr>
  1325. <td></td>
  1326. <td>)</td>
  1327. <td></td><td></td>
  1328. </tr>
  1329. </table>
  1330. </div><div class="memdoc">
  1331. <p>Reply to ask for data fetch and output buffer preparation. ioctl will be retried with the specified input data fetched and output buffer prepared.</p>
  1332. <p>Possible requests: ioctl</p>
  1333. <dl class="params"><dt>Parameters</dt><dd>
  1334. <table class="params">
  1335. <tr><td class="paramname">req</td><td>request handle </td></tr>
  1336. <tr><td class="paramname">in_iov</td><td>iovec specifying data to fetch from the caller </td></tr>
  1337. <tr><td class="paramname">in_count</td><td>number of entries in in_iov </td></tr>
  1338. <tr><td class="paramname">out_iov</td><td>iovec specifying addresses to write output to </td></tr>
  1339. <tr><td class="paramname">out_count</td><td>number of entries in out_iov </td></tr>
  1340. </table>
  1341. </dd>
  1342. </dl>
  1343. <dl class="section return"><dt>Returns</dt><dd>zero for success, -errno for failure to send reply </dd></dl>
  1344. </div>
  1345. </div>
  1346. <a class="anchor" id="a5fbbf591a55f09c02cd54d34bdbfe0e9"></a>
  1347. <div class="memitem">
  1348. <div class="memproto">
  1349. <table class="memname">
  1350. <tr>
  1351. <td class="memname">int fuse_reply_iov </td>
  1352. <td>(</td>
  1353. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  1354. <td class="paramname"><em>req</em>, </td>
  1355. </tr>
  1356. <tr>
  1357. <td class="paramkey"></td>
  1358. <td></td>
  1359. <td class="paramtype">const struct iovec *&#160;</td>
  1360. <td class="paramname"><em>iov</em>, </td>
  1361. </tr>
  1362. <tr>
  1363. <td class="paramkey"></td>
  1364. <td></td>
  1365. <td class="paramtype">int&#160;</td>
  1366. <td class="paramname"><em>count</em>&#160;</td>
  1367. </tr>
  1368. <tr>
  1369. <td></td>
  1370. <td>)</td>
  1371. <td></td><td></td>
  1372. </tr>
  1373. </table>
  1374. </div><div class="memdoc">
  1375. <p>Reply with data vector</p>
  1376. <p>Possible requests: read, readdir, getxattr, listxattr</p>
  1377. <dl class="params"><dt>Parameters</dt><dd>
  1378. <table class="params">
  1379. <tr><td class="paramname">req</td><td>request handle </td></tr>
  1380. <tr><td class="paramname">iov</td><td>the vector containing the data </td></tr>
  1381. <tr><td class="paramname">count</td><td>the size of vector </td></tr>
  1382. </table>
  1383. </dd>
  1384. </dl>
  1385. <dl class="section return"><dt>Returns</dt><dd>zero for success, -errno for failure to send reply </dd></dl>
  1386. </div>
  1387. </div>
  1388. <a class="anchor" id="a135eda9b7d36fb4eaae2de58526d4f85"></a>
  1389. <div class="memitem">
  1390. <div class="memproto">
  1391. <table class="memname">
  1392. <tr>
  1393. <td class="memname">int fuse_reply_lock </td>
  1394. <td>(</td>
  1395. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  1396. <td class="paramname"><em>req</em>, </td>
  1397. </tr>
  1398. <tr>
  1399. <td class="paramkey"></td>
  1400. <td></td>
  1401. <td class="paramtype">const struct flock *&#160;</td>
  1402. <td class="paramname"><em>lock</em>&#160;</td>
  1403. </tr>
  1404. <tr>
  1405. <td></td>
  1406. <td>)</td>
  1407. <td></td><td></td>
  1408. </tr>
  1409. </table>
  1410. </div><div class="memdoc">
  1411. <p>Reply with file lock information</p>
  1412. <p>Possible requests: getlk</p>
  1413. <dl class="params"><dt>Parameters</dt><dd>
  1414. <table class="params">
  1415. <tr><td class="paramname">req</td><td>request handle </td></tr>
  1416. <tr><td class="paramname">lock</td><td>the lock information </td></tr>
  1417. </table>
  1418. </dd>
  1419. </dl>
  1420. <dl class="section return"><dt>Returns</dt><dd>zero for success, -errno for failure to send reply </dd></dl>
  1421. </div>
  1422. </div>
  1423. <a class="anchor" id="a85ae91390a6704dc26f8d80fed7d5678"></a>
  1424. <div class="memitem">
  1425. <div class="memproto">
  1426. <table class="memname">
  1427. <tr>
  1428. <td class="memname">void fuse_reply_none </td>
  1429. <td>(</td>
  1430. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  1431. <td class="paramname"><em>req</em></td><td>)</td>
  1432. <td></td>
  1433. </tr>
  1434. </table>
  1435. </div><div class="memdoc">
  1436. <p>Don't send reply</p>
  1437. <p>Possible requests: forget</p>
  1438. <dl class="params"><dt>Parameters</dt><dd>
  1439. <table class="params">
  1440. <tr><td class="paramname">req</td><td>request handle </td></tr>
  1441. </table>
  1442. </dd>
  1443. </dl>
  1444. </div>
  1445. </div>
  1446. <a class="anchor" id="a170f8c6b953d70928e83bcecee43bfdc"></a>
  1447. <div class="memitem">
  1448. <div class="memproto">
  1449. <table class="memname">
  1450. <tr>
  1451. <td class="memname">int fuse_reply_open </td>
  1452. <td>(</td>
  1453. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  1454. <td class="paramname"><em>req</em>, </td>
  1455. </tr>
  1456. <tr>
  1457. <td class="paramkey"></td>
  1458. <td></td>
  1459. <td class="paramtype">const struct <a class="el" href="structfuse__file__info.html">fuse_file_info</a> *&#160;</td>
  1460. <td class="paramname"><em>fi</em>&#160;</td>
  1461. </tr>
  1462. <tr>
  1463. <td></td>
  1464. <td>)</td>
  1465. <td></td><td></td>
  1466. </tr>
  1467. </table>
  1468. </div><div class="memdoc">
  1469. <p>Reply with open parameters</p>
  1470. <p>currently the following members of 'fi' are used: fh, direct_io, keep_cache</p>
  1471. <p>Possible requests: open, opendir</p>
  1472. <dl class="params"><dt>Parameters</dt><dd>
  1473. <table class="params">
  1474. <tr><td class="paramname">req</td><td>request handle </td></tr>
  1475. <tr><td class="paramname">fi</td><td>file information </td></tr>
  1476. </table>
  1477. </dd>
  1478. </dl>
  1479. <dl class="section return"><dt>Returns</dt><dd>zero for success, -errno for failure to send reply </dd></dl>
  1480. </div>
  1481. </div>
  1482. <a class="anchor" id="a2172d260d34c76c25cd601870aee4220"></a>
  1483. <div class="memitem">
  1484. <div class="memproto">
  1485. <table class="memname">
  1486. <tr>
  1487. <td class="memname">int fuse_reply_poll </td>
  1488. <td>(</td>
  1489. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  1490. <td class="paramname"><em>req</em>, </td>
  1491. </tr>
  1492. <tr>
  1493. <td class="paramkey"></td>
  1494. <td></td>
  1495. <td class="paramtype">unsigned&#160;</td>
  1496. <td class="paramname"><em>revents</em>&#160;</td>
  1497. </tr>
  1498. <tr>
  1499. <td></td>
  1500. <td>)</td>
  1501. <td></td><td></td>
  1502. </tr>
  1503. </table>
  1504. </div><div class="memdoc">
  1505. <p>Reply with poll result event mask</p>
  1506. <dl class="params"><dt>Parameters</dt><dd>
  1507. <table class="params">
  1508. <tr><td class="paramname">req</td><td>request handle </td></tr>
  1509. <tr><td class="paramname">revents</td><td>poll result event mask </td></tr>
  1510. </table>
  1511. </dd>
  1512. </dl>
  1513. </div>
  1514. </div>
  1515. <a class="anchor" id="a5a5872d7f73f0bd593e00788a4c7bbb7"></a>
  1516. <div class="memitem">
  1517. <div class="memproto">
  1518. <table class="memname">
  1519. <tr>
  1520. <td class="memname">int fuse_reply_readlink </td>
  1521. <td>(</td>
  1522. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  1523. <td class="paramname"><em>req</em>, </td>
  1524. </tr>
  1525. <tr>
  1526. <td class="paramkey"></td>
  1527. <td></td>
  1528. <td class="paramtype">const char *&#160;</td>
  1529. <td class="paramname"><em>link</em>&#160;</td>
  1530. </tr>
  1531. <tr>
  1532. <td></td>
  1533. <td>)</td>
  1534. <td></td><td></td>
  1535. </tr>
  1536. </table>
  1537. </div><div class="memdoc">
  1538. <p>Reply with the contents of a symbolic link</p>
  1539. <p>Possible requests: readlink</p>
  1540. <dl class="params"><dt>Parameters</dt><dd>
  1541. <table class="params">
  1542. <tr><td class="paramname">req</td><td>request handle </td></tr>
  1543. <tr><td class="paramname">link</td><td>symbolic link contents </td></tr>
  1544. </table>
  1545. </dd>
  1546. </dl>
  1547. <dl class="section return"><dt>Returns</dt><dd>zero for success, -errno for failure to send reply </dd></dl>
  1548. </div>
  1549. </div>
  1550. <a class="anchor" id="aa1d95ec3ca674253baac3639ea10f0ff"></a>
  1551. <div class="memitem">
  1552. <div class="memproto">
  1553. <table class="memname">
  1554. <tr>
  1555. <td class="memname">int fuse_reply_statfs </td>
  1556. <td>(</td>
  1557. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  1558. <td class="paramname"><em>req</em>, </td>
  1559. </tr>
  1560. <tr>
  1561. <td class="paramkey"></td>
  1562. <td></td>
  1563. <td class="paramtype">const struct statvfs *&#160;</td>
  1564. <td class="paramname"><em>stbuf</em>&#160;</td>
  1565. </tr>
  1566. <tr>
  1567. <td></td>
  1568. <td>)</td>
  1569. <td></td><td></td>
  1570. </tr>
  1571. </table>
  1572. </div><div class="memdoc">
  1573. <p>Reply with filesystem statistics</p>
  1574. <p>Possible requests: statfs</p>
  1575. <dl class="params"><dt>Parameters</dt><dd>
  1576. <table class="params">
  1577. <tr><td class="paramname">req</td><td>request handle </td></tr>
  1578. <tr><td class="paramname">stbuf</td><td>filesystem statistics </td></tr>
  1579. </table>
  1580. </dd>
  1581. </dl>
  1582. <dl class="section return"><dt>Returns</dt><dd>zero for success, -errno for failure to send reply </dd></dl>
  1583. </div>
  1584. </div>
  1585. <a class="anchor" id="aa3cfa73f61d6ef461ab5a3fbf859eb97"></a>
  1586. <div class="memitem">
  1587. <div class="memproto">
  1588. <table class="memname">
  1589. <tr>
  1590. <td class="memname">int fuse_reply_write </td>
  1591. <td>(</td>
  1592. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  1593. <td class="paramname"><em>req</em>, </td>
  1594. </tr>
  1595. <tr>
  1596. <td class="paramkey"></td>
  1597. <td></td>
  1598. <td class="paramtype">size_t&#160;</td>
  1599. <td class="paramname"><em>count</em>&#160;</td>
  1600. </tr>
  1601. <tr>
  1602. <td></td>
  1603. <td>)</td>
  1604. <td></td><td></td>
  1605. </tr>
  1606. </table>
  1607. </div><div class="memdoc">
  1608. <p>Reply with number of bytes written</p>
  1609. <p>Possible requests: write</p>
  1610. <dl class="params"><dt>Parameters</dt><dd>
  1611. <table class="params">
  1612. <tr><td class="paramname">req</td><td>request handle </td></tr>
  1613. <tr><td class="paramname">count</td><td>the number of bytes written </td></tr>
  1614. </table>
  1615. </dd>
  1616. </dl>
  1617. <dl class="section return"><dt>Returns</dt><dd>zero for success, -errno for failure to send reply </dd></dl>
  1618. </div>
  1619. </div>
  1620. <a class="anchor" id="afed32e5d3e1f54d390103f79ebb8bd42"></a>
  1621. <div class="memitem">
  1622. <div class="memproto">
  1623. <table class="memname">
  1624. <tr>
  1625. <td class="memname">int fuse_reply_xattr </td>
  1626. <td>(</td>
  1627. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  1628. <td class="paramname"><em>req</em>, </td>
  1629. </tr>
  1630. <tr>
  1631. <td class="paramkey"></td>
  1632. <td></td>
  1633. <td class="paramtype">size_t&#160;</td>
  1634. <td class="paramname"><em>count</em>&#160;</td>
  1635. </tr>
  1636. <tr>
  1637. <td></td>
  1638. <td>)</td>
  1639. <td></td><td></td>
  1640. </tr>
  1641. </table>
  1642. </div><div class="memdoc">
  1643. <p>Reply with needed buffer size</p>
  1644. <p>Possible requests: getxattr, listxattr</p>
  1645. <dl class="params"><dt>Parameters</dt><dd>
  1646. <table class="params">
  1647. <tr><td class="paramname">req</td><td>request handle </td></tr>
  1648. <tr><td class="paramname">count</td><td>the buffer size needed in bytes </td></tr>
  1649. </table>
  1650. </dd>
  1651. </dl>
  1652. <dl class="section return"><dt>Returns</dt><dd>zero for success, -errno for failure to send reply </dd></dl>
  1653. </div>
  1654. </div>
  1655. <a class="anchor" id="ad1d1963190eb93ae5667d32d2b387ca1"></a>
  1656. <div class="memitem">
  1657. <div class="memproto">
  1658. <table class="memname">
  1659. <tr>
  1660. <td class="memname">const struct <a class="el" href="structfuse__ctx.html">fuse_ctx</a>* fuse_req_ctx </td>
  1661. <td>(</td>
  1662. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  1663. <td class="paramname"><em>req</em></td><td>)</td>
  1664. <td></td>
  1665. </tr>
  1666. </table>
  1667. </div><div class="memdoc">
  1668. <p>Get the context from the request</p>
  1669. <p>The pointer returned by this function will only be valid for the request's lifetime</p>
  1670. <dl class="params"><dt>Parameters</dt><dd>
  1671. <table class="params">
  1672. <tr><td class="paramname">req</td><td>request handle </td></tr>
  1673. </table>
  1674. </dd>
  1675. </dl>
  1676. <dl class="section return"><dt>Returns</dt><dd>the context structure </dd></dl>
  1677. </div>
  1678. </div>
  1679. <a class="anchor" id="a57f4dabcf044aafcdba6c4682b3a1869"></a>
  1680. <div class="memitem">
  1681. <div class="memproto">
  1682. <table class="memname">
  1683. <tr>
  1684. <td class="memname">int fuse_req_getgroups </td>
  1685. <td>(</td>
  1686. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  1687. <td class="paramname"><em>req</em>, </td>
  1688. </tr>
  1689. <tr>
  1690. <td class="paramkey"></td>
  1691. <td></td>
  1692. <td class="paramtype">int&#160;</td>
  1693. <td class="paramname"><em>size</em>, </td>
  1694. </tr>
  1695. <tr>
  1696. <td class="paramkey"></td>
  1697. <td></td>
  1698. <td class="paramtype">gid_t&#160;</td>
  1699. <td class="paramname"><em>list</em>[]&#160;</td>
  1700. </tr>
  1701. <tr>
  1702. <td></td>
  1703. <td>)</td>
  1704. <td></td><td></td>
  1705. </tr>
  1706. </table>
  1707. </div><div class="memdoc">
  1708. <p>Get the current supplementary group IDs for the specified request</p>
  1709. <p>Similar to the getgroups(2) system call, except the return value is always the total number of group IDs, even if it is larger than the specified size.</p>
  1710. <p>The current fuse kernel module in linux (as of 2.6.30) doesn't pass the group list to userspace, hence this function needs to parse "/proc/$TID/task/$TID/status" to get the group IDs.</p>
  1711. <p>This feature may not be supported on all operating systems. In such a case this function will return -ENOSYS.</p>
  1712. <dl class="params"><dt>Parameters</dt><dd>
  1713. <table class="params">
  1714. <tr><td class="paramname">req</td><td>request handle </td></tr>
  1715. <tr><td class="paramname">size</td><td>size of given array </td></tr>
  1716. <tr><td class="paramname">list</td><td>array of group IDs to be filled in </td></tr>
  1717. </table>
  1718. </dd>
  1719. </dl>
  1720. <dl class="section return"><dt>Returns</dt><dd>the total number of supplementary group IDs or -errno on failure </dd></dl>
  1721. </div>
  1722. </div>
  1723. <a class="anchor" id="ab3cdb9744f033e37a72984489343940f"></a>
  1724. <div class="memitem">
  1725. <div class="memproto">
  1726. <table class="memname">
  1727. <tr>
  1728. <td class="memname">void fuse_req_interrupt_func </td>
  1729. <td>(</td>
  1730. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  1731. <td class="paramname"><em>req</em>, </td>
  1732. </tr>
  1733. <tr>
  1734. <td class="paramkey"></td>
  1735. <td></td>
  1736. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a5bb8b555b1d9d8a38b8c6cac28d51f1e">fuse_interrupt_func_t</a>&#160;</td>
  1737. <td class="paramname"><em>func</em>, </td>
  1738. </tr>
  1739. <tr>
  1740. <td class="paramkey"></td>
  1741. <td></td>
  1742. <td class="paramtype">void *&#160;</td>
  1743. <td class="paramname"><em>data</em>&#160;</td>
  1744. </tr>
  1745. <tr>
  1746. <td></td>
  1747. <td>)</td>
  1748. <td></td><td></td>
  1749. </tr>
  1750. </table>
  1751. </div><div class="memdoc">
  1752. <p>Register/unregister callback for an interrupt</p>
  1753. <p>If an interrupt has already happened, then the callback function is called from within this function, hence it's not possible for interrupts to be lost.</p>
  1754. <dl class="params"><dt>Parameters</dt><dd>
  1755. <table class="params">
  1756. <tr><td class="paramname">req</td><td>request handle </td></tr>
  1757. <tr><td class="paramname">func</td><td>the callback function or NULL for unregister </td></tr>
  1758. <tr><td class="paramname">data</td><td>user data passed to the callback function </td></tr>
  1759. </table>
  1760. </dd>
  1761. </dl>
  1762. </div>
  1763. </div>
  1764. <a class="anchor" id="a52674fc627647f33e63c74267f0f1f9d"></a>
  1765. <div class="memitem">
  1766. <div class="memproto">
  1767. <table class="memname">
  1768. <tr>
  1769. <td class="memname">int fuse_req_interrupted </td>
  1770. <td>(</td>
  1771. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  1772. <td class="paramname"><em>req</em></td><td>)</td>
  1773. <td></td>
  1774. </tr>
  1775. </table>
  1776. </div><div class="memdoc">
  1777. <p>Check if a request has already been interrupted</p>
  1778. <dl class="params"><dt>Parameters</dt><dd>
  1779. <table class="params">
  1780. <tr><td class="paramname">req</td><td>request handle </td></tr>
  1781. </table>
  1782. </dd>
  1783. </dl>
  1784. <dl class="section return"><dt>Returns</dt><dd>1 if the request has been interrupted, 0 otherwise </dd></dl>
  1785. </div>
  1786. </div>
  1787. <a class="anchor" id="aab00273c65d124e44abcf2374f9c504b"></a>
  1788. <div class="memitem">
  1789. <div class="memproto">
  1790. <table class="memname">
  1791. <tr>
  1792. <td class="memname">void* fuse_req_userdata </td>
  1793. <td>(</td>
  1794. <td class="paramtype"><a class="el" href="fuse__lowlevel_8h.html#a33e2aa4a8905a05397292ae047cd2257">fuse_req_t</a>&#160;</td>
  1795. <td class="paramname"><em>req</em></td><td>)</td>
  1796. <td></td>
  1797. </tr>
  1798. </table>
  1799. </div><div class="memdoc">
  1800. <p>Get the userdata from the request</p>
  1801. <dl class="params"><dt>Parameters</dt><dd>
  1802. <table class="params">
  1803. <tr><td class="paramname">req</td><td>request handle </td></tr>
  1804. </table>
  1805. </dd>
  1806. </dl>
  1807. <dl class="section return"><dt>Returns</dt><dd>the user data passed to <a class="el" href="fuse__lowlevel_8h.html#ab71e91777def283987cd8a504e926d01">fuse_lowlevel_new()</a> </dd></dl>
  1808. </div>
  1809. </div>
  1810. <a class="anchor" id="adcc40a021ee1a21752e3c622f3d3692d"></a>
  1811. <div class="memitem">
  1812. <div class="memproto">
  1813. <table class="memname">
  1814. <tr>
  1815. <td class="memname">void fuse_session_add_chan </td>
  1816. <td>(</td>
  1817. <td class="paramtype">struct fuse_session *&#160;</td>
  1818. <td class="paramname"><em>se</em>, </td>
  1819. </tr>
  1820. <tr>
  1821. <td class="paramkey"></td>
  1822. <td></td>
  1823. <td class="paramtype">struct fuse_chan *&#160;</td>
  1824. <td class="paramname"><em>ch</em>&#160;</td>
  1825. </tr>
  1826. <tr>
  1827. <td></td>
  1828. <td>)</td>
  1829. <td></td><td></td>
  1830. </tr>
  1831. </table>
  1832. </div><div class="memdoc">
  1833. <p>Assign a channel to a session</p>
  1834. <p>Note: currently only a single channel may be assigned. This may change in the future</p>
  1835. <p>If a session is destroyed, the assigned channel is also destroyed</p>
  1836. <dl class="params"><dt>Parameters</dt><dd>
  1837. <table class="params">
  1838. <tr><td class="paramname">se</td><td>the session </td></tr>
  1839. <tr><td class="paramname">ch</td><td>the channel </td></tr>
  1840. </table>
  1841. </dd>
  1842. </dl>
  1843. </div>
  1844. </div>
  1845. <a class="anchor" id="ac58f69b8c0f7e9fbd45280fb1d68d9f5"></a>
  1846. <div class="memitem">
  1847. <div class="memproto">
  1848. <table class="memname">
  1849. <tr>
  1850. <td class="memname">void* fuse_session_data </td>
  1851. <td>(</td>
  1852. <td class="paramtype">struct fuse_session *&#160;</td>
  1853. <td class="paramname"><em>se</em></td><td>)</td>
  1854. <td></td>
  1855. </tr>
  1856. </table>
  1857. </div><div class="memdoc">
  1858. <p>Get the user data provided to the session</p>
  1859. <dl class="params"><dt>Parameters</dt><dd>
  1860. <table class="params">
  1861. <tr><td class="paramname">se</td><td>the session </td></tr>
  1862. </table>
  1863. </dd>
  1864. </dl>
  1865. <dl class="section return"><dt>Returns</dt><dd>the user data </dd></dl>
  1866. </div>
  1867. </div>
  1868. <a class="anchor" id="a08b5503c4e9656f9c4bc88331233cc65"></a>
  1869. <div class="memitem">
  1870. <div class="memproto">
  1871. <table class="memname">
  1872. <tr>
  1873. <td class="memname">void fuse_session_destroy </td>
  1874. <td>(</td>
  1875. <td class="paramtype">struct fuse_session *&#160;</td>
  1876. <td class="paramname"><em>se</em></td><td>)</td>
  1877. <td></td>
  1878. </tr>
  1879. </table>
  1880. </div><div class="memdoc">
  1881. <p>Destroy a session</p>
  1882. <dl class="params"><dt>Parameters</dt><dd>
  1883. <table class="params">
  1884. <tr><td class="paramname">se</td><td>the session </td></tr>
  1885. </table>
  1886. </dd>
  1887. </dl>
  1888. </div>
  1889. </div>
  1890. <a class="anchor" id="a198429f3fbc23ef29ef9971271827690"></a>
  1891. <div class="memitem">
  1892. <div class="memproto">
  1893. <table class="memname">
  1894. <tr>
  1895. <td class="memname">void fuse_session_exit </td>
  1896. <td>(</td>
  1897. <td class="paramtype">struct fuse_session *&#160;</td>
  1898. <td class="paramname"><em>se</em></td><td>)</td>
  1899. <td></td>
  1900. </tr>
  1901. </table>
  1902. </div><div class="memdoc">
  1903. <p>Exit a session</p>
  1904. <dl class="params"><dt>Parameters</dt><dd>
  1905. <table class="params">
  1906. <tr><td class="paramname">se</td><td>the session </td></tr>
  1907. </table>
  1908. </dd>
  1909. </dl>
  1910. </div>
  1911. </div>
  1912. <a class="anchor" id="a41b12193fa1520ff658d65679f4e513c"></a>
  1913. <div class="memitem">
  1914. <div class="memproto">
  1915. <table class="memname">
  1916. <tr>
  1917. <td class="memname">int fuse_session_exited </td>
  1918. <td>(</td>
  1919. <td class="paramtype">struct fuse_session *&#160;</td>
  1920. <td class="paramname"><em>se</em></td><td>)</td>
  1921. <td></td>
  1922. </tr>
  1923. </table>
  1924. </div><div class="memdoc">
  1925. <p>Query the exited status of a session</p>
  1926. <dl class="params"><dt>Parameters</dt><dd>
  1927. <table class="params">
  1928. <tr><td class="paramname">se</td><td>the session </td></tr>
  1929. </table>
  1930. </dd>
  1931. </dl>
  1932. <dl class="section return"><dt>Returns</dt><dd>1 if exited, 0 if not exited </dd></dl>
  1933. </div>
  1934. </div>
  1935. <a class="anchor" id="a5f1e538aa3287e251afbe985438c4249"></a>
  1936. <div class="memitem">
  1937. <div class="memproto">
  1938. <table class="memname">
  1939. <tr>
  1940. <td class="memname">int fuse_session_loop </td>
  1941. <td>(</td>
  1942. <td class="paramtype">struct fuse_session *&#160;</td>
  1943. <td class="paramname"><em>se</em></td><td>)</td>
  1944. <td></td>
  1945. </tr>
  1946. </table>
  1947. </div><div class="memdoc">
  1948. <p>Enter a single threaded event loop</p>
  1949. <dl class="params"><dt>Parameters</dt><dd>
  1950. <table class="params">
  1951. <tr><td class="paramname">se</td><td>the session </td></tr>
  1952. </table>
  1953. </dd>
  1954. </dl>
  1955. <dl class="section return"><dt>Returns</dt><dd>0 on success, -1 on error </dd></dl>
  1956. </div>
  1957. </div>
  1958. <a class="anchor" id="afeffdee79e361c96b10ce798c56ed2cc"></a>
  1959. <div class="memitem">
  1960. <div class="memproto">
  1961. <table class="memname">
  1962. <tr>
  1963. <td class="memname">int fuse_session_loop_mt </td>
  1964. <td>(</td>
  1965. <td class="paramtype">struct fuse_session *&#160;</td>
  1966. <td class="paramname"><em>se</em></td><td>)</td>
  1967. <td></td>
  1968. </tr>
  1969. </table>
  1970. </div><div class="memdoc">
  1971. <p>Enter a multi-threaded event loop</p>
  1972. <dl class="params"><dt>Parameters</dt><dd>
  1973. <table class="params">
  1974. <tr><td class="paramname">se</td><td>the session </td></tr>
  1975. </table>
  1976. </dd>
  1977. </dl>
  1978. <dl class="section return"><dt>Returns</dt><dd>0 on success, -1 on error </dd></dl>
  1979. </div>
  1980. </div>
  1981. <a class="anchor" id="a28b7d09c6e87e3e375743c2ef6e06f0f"></a>
  1982. <div class="memitem">
  1983. <div class="memproto">
  1984. <table class="memname">
  1985. <tr>
  1986. <td class="memname">struct fuse_session* fuse_session_new </td>
  1987. <td>(</td>
  1988. <td class="paramtype">struct <a class="el" href="structfuse__session__ops.html">fuse_session_ops</a> *&#160;</td>
  1989. <td class="paramname"><em>op</em>, </td>
  1990. </tr>
  1991. <tr>
  1992. <td class="paramkey"></td>
  1993. <td></td>
  1994. <td class="paramtype">void *&#160;</td>
  1995. <td class="paramname"><em>data</em>&#160;</td>
  1996. </tr>
  1997. <tr>
  1998. <td></td>
  1999. <td>)</td>
  2000. <td></td><td></td>
  2001. </tr>
  2002. </table>
  2003. </div><div class="memdoc">
  2004. <p>Create a new session</p>
  2005. <dl class="params"><dt>Parameters</dt><dd>
  2006. <table class="params">
  2007. <tr><td class="paramname">op</td><td>session operations </td></tr>
  2008. <tr><td class="paramname">data</td><td>user data </td></tr>
  2009. </table>
  2010. </dd>
  2011. </dl>
  2012. <dl class="section return"><dt>Returns</dt><dd>new session object, or NULL on failure </dd></dl>
  2013. </div>
  2014. </div>
  2015. <a class="anchor" id="a8a6664baeee7a580928f959fd4968d5c"></a>
  2016. <div class="memitem">
  2017. <div class="memproto">
  2018. <table class="memname">
  2019. <tr>
  2020. <td class="memname">struct fuse_chan* fuse_session_next_chan </td>
  2021. <td>(</td>
  2022. <td class="paramtype">struct fuse_session *&#160;</td>
  2023. <td class="paramname"><em>se</em>, </td>
  2024. </tr>
  2025. <tr>
  2026. <td class="paramkey"></td>
  2027. <td></td>
  2028. <td class="paramtype">struct fuse_chan *&#160;</td>
  2029. <td class="paramname"><em>ch</em>&#160;</td>
  2030. </tr>
  2031. <tr>
  2032. <td></td>
  2033. <td>)</td>
  2034. <td></td><td></td>
  2035. </tr>
  2036. </table>
  2037. </div><div class="memdoc">
  2038. <p>Iterate over the channels assigned to a session</p>
  2039. <p>The iterating function needs to start with a NULL channel, and after that needs to pass the previously returned channel to the function.</p>
  2040. <dl class="params"><dt>Parameters</dt><dd>
  2041. <table class="params">
  2042. <tr><td class="paramname">se</td><td>the session </td></tr>
  2043. <tr><td class="paramname">ch</td><td>the previous channel, or NULL </td></tr>
  2044. </table>
  2045. </dd>
  2046. </dl>
  2047. <dl class="section return"><dt>Returns</dt><dd>the next channel, or NULL if no more channels exist </dd></dl>
  2048. </div>
  2049. </div>
  2050. <a class="anchor" id="a210cb96700171ccbb5fe84a42b4613d8"></a>
  2051. <div class="memitem">
  2052. <div class="memproto">
  2053. <table class="memname">
  2054. <tr>
  2055. <td class="memname">void fuse_session_process </td>
  2056. <td>(</td>
  2057. <td class="paramtype">struct fuse_session *&#160;</td>
  2058. <td class="paramname"><em>se</em>, </td>
  2059. </tr>
  2060. <tr>
  2061. <td class="paramkey"></td>
  2062. <td></td>
  2063. <td class="paramtype">const char *&#160;</td>
  2064. <td class="paramname"><em>buf</em>, </td>
  2065. </tr>
  2066. <tr>
  2067. <td class="paramkey"></td>
  2068. <td></td>
  2069. <td class="paramtype">size_t&#160;</td>
  2070. <td class="paramname"><em>len</em>, </td>
  2071. </tr>
  2072. <tr>
  2073. <td class="paramkey"></td>
  2074. <td></td>
  2075. <td class="paramtype">struct fuse_chan *&#160;</td>
  2076. <td class="paramname"><em>ch</em>&#160;</td>
  2077. </tr>
  2078. <tr>
  2079. <td></td>
  2080. <td>)</td>
  2081. <td></td><td></td>
  2082. </tr>
  2083. </table>
  2084. </div><div class="memdoc">
  2085. <p>Process a raw request</p>
  2086. <dl class="params"><dt>Parameters</dt><dd>
  2087. <table class="params">
  2088. <tr><td class="paramname">se</td><td>the session </td></tr>
  2089. <tr><td class="paramname">buf</td><td>buffer containing the raw request </td></tr>
  2090. <tr><td class="paramname">len</td><td>request length </td></tr>
  2091. <tr><td class="paramname">ch</td><td>channel on which the request was received </td></tr>
  2092. </table>
  2093. </dd>
  2094. </dl>
  2095. </div>
  2096. </div>
  2097. <a class="anchor" id="a58da9b49939ed7e60c906d99bbf7b21a"></a>
  2098. <div class="memitem">
  2099. <div class="memproto">
  2100. <table class="memname">
  2101. <tr>
  2102. <td class="memname">void fuse_session_process_buf </td>
  2103. <td>(</td>
  2104. <td class="paramtype">struct fuse_session *&#160;</td>
  2105. <td class="paramname"><em>se</em>, </td>
  2106. </tr>
  2107. <tr>
  2108. <td class="paramkey"></td>
  2109. <td></td>
  2110. <td class="paramtype">const struct <a class="el" href="structfuse__buf.html">fuse_buf</a> *&#160;</td>
  2111. <td class="paramname"><em>buf</em>, </td>
  2112. </tr>
  2113. <tr>
  2114. <td class="paramkey"></td>
  2115. <td></td>
  2116. <td class="paramtype">struct fuse_chan *&#160;</td>
  2117. <td class="paramname"><em>ch</em>&#160;</td>
  2118. </tr>
  2119. <tr>
  2120. <td></td>
  2121. <td>)</td>
  2122. <td></td><td></td>
  2123. </tr>
  2124. </table>
  2125. </div><div class="memdoc">
  2126. <p>Process a raw request supplied in a generic buffer</p>
  2127. <p>This is a more generic version of <a class="el" href="fuse__lowlevel_8h.html#a210cb96700171ccbb5fe84a42b4613d8">fuse_session_process()</a>. The <a class="el" href="structfuse__buf.html">fuse_buf</a> may contain a memory buffer or a pipe file descriptor.</p>
  2128. <dl class="params"><dt>Parameters</dt><dd>
  2129. <table class="params">
  2130. <tr><td class="paramname">se</td><td>the session </td></tr>
  2131. <tr><td class="paramname">buf</td><td>the <a class="el" href="structfuse__buf.html">fuse_buf</a> containing the request </td></tr>
  2132. <tr><td class="paramname">ch</td><td>channel on which the request was received </td></tr>
  2133. </table>
  2134. </dd>
  2135. </dl>
  2136. </div>
  2137. </div>
  2138. <a class="anchor" id="a7f7f424f58729d08af8ab7be91d93478"></a>
  2139. <div class="memitem">
  2140. <div class="memproto">
  2141. <table class="memname">
  2142. <tr>
  2143. <td class="memname">int fuse_session_receive_buf </td>
  2144. <td>(</td>
  2145. <td class="paramtype">struct fuse_session *&#160;</td>
  2146. <td class="paramname"><em>se</em>, </td>
  2147. </tr>
  2148. <tr>
  2149. <td class="paramkey"></td>
  2150. <td></td>
  2151. <td class="paramtype">struct <a class="el" href="structfuse__buf.html">fuse_buf</a> *&#160;</td>
  2152. <td class="paramname"><em>buf</em>, </td>
  2153. </tr>
  2154. <tr>
  2155. <td class="paramkey"></td>
  2156. <td></td>
  2157. <td class="paramtype">struct fuse_chan **&#160;</td>
  2158. <td class="paramname"><em>chp</em>&#160;</td>
  2159. </tr>
  2160. <tr>
  2161. <td></td>
  2162. <td>)</td>
  2163. <td></td><td></td>
  2164. </tr>
  2165. </table>
  2166. </div><div class="memdoc">
  2167. <p>Receive a raw request supplied in a generic buffer</p>
  2168. <p>This is a more generic version of <a class="el" href="fuse__lowlevel_8h.html#afa1748ec47595b3ab7be93ad29e55fcb">fuse_chan_recv()</a>. The <a class="el" href="structfuse__buf.html">fuse_buf</a> supplied to this function contains a suitably allocated memory buffer. This may be overwritten with a file descriptor buffer.</p>
  2169. <dl class="params"><dt>Parameters</dt><dd>
  2170. <table class="params">
  2171. <tr><td class="paramname">se</td><td>the session </td></tr>
  2172. <tr><td class="paramname">buf</td><td>the <a class="el" href="structfuse__buf.html">fuse_buf</a> to store the request in </td></tr>
  2173. <tr><td class="paramname">chp</td><td>pointer to the channel </td></tr>
  2174. </table>
  2175. </dd>
  2176. </dl>
  2177. <dl class="section return"><dt>Returns</dt><dd>the actual size of the raw request, or -errno on error </dd></dl>
  2178. </div>
  2179. </div>
  2180. <a class="anchor" id="a93cb94614503b2249d15629c447dddb9"></a>
  2181. <div class="memitem">
  2182. <div class="memproto">
  2183. <table class="memname">
  2184. <tr>
  2185. <td class="memname">void fuse_session_remove_chan </td>
  2186. <td>(</td>
  2187. <td class="paramtype">struct fuse_chan *&#160;</td>
  2188. <td class="paramname"><em>ch</em></td><td>)</td>
  2189. <td></td>
  2190. </tr>
  2191. </table>
  2192. </div><div class="memdoc">
  2193. <p>Remove a channel from a session</p>
  2194. <p>If the channel is not assigned to a session, then this is a no-op</p>
  2195. <dl class="params"><dt>Parameters</dt><dd>
  2196. <table class="params">
  2197. <tr><td class="paramname">ch</td><td>the channel to remove </td></tr>
  2198. </table>
  2199. </dd>
  2200. </dl>
  2201. </div>
  2202. </div>
  2203. <a class="anchor" id="ab3d015de77ae0edeb3157321e7a5c434"></a>
  2204. <div class="memitem">
  2205. <div class="memproto">
  2206. <table class="memname">
  2207. <tr>
  2208. <td class="memname">void fuse_session_reset </td>
  2209. <td>(</td>
  2210. <td class="paramtype">struct fuse_session *&#160;</td>
  2211. <td class="paramname"><em>se</em></td><td>)</td>
  2212. <td></td>
  2213. </tr>
  2214. </table>
  2215. </div><div class="memdoc">
  2216. <p>Reset the exited status of a session</p>
  2217. <dl class="params"><dt>Parameters</dt><dd>
  2218. <table class="params">
  2219. <tr><td class="paramname">se</td><td>the session </td></tr>
  2220. </table>
  2221. </dd>
  2222. </dl>
  2223. </div>
  2224. </div>
  2225. </div><!-- contents -->
  2226. <!-- start footer part -->
  2227. <hr class="footer"/><address class="footer"><small>
  2228. Generated on Sat Apr 23 2016 09:43:20 for fuse by &#160;<a href="http://www.doxygen.org/index.html">
  2229. <img class="footer" src="doxygen.png" alt="doxygen"/>
  2230. </a> 1.8.8
  2231. </small></address>
  2232. </body>
  2233. </html>