blob: 23c58be20bd863fa7f4e6d33881b7e03961f6ff3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
<table class="head">
<tr>
<td class="head-ltitle">PSEUDOFS(9)</td>
<td class="head-vol">Kernel Developer's Manual</td>
<td class="head-rtitle">PSEUDOFS(9)</td>
</tr>
</table>
<div class="manual-text">
<section class="Sh">
<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
<p class="Pp"><code class="Nm">pseudofs</code> — <span class="Nd">pseudo
file system construction kit</span></p>
</section>
<section class="Sh">
<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
<p class="Pp"><code class="In">#include
<<a class="In">fs/pseudofs/pseudofs.h</a>></code></p>
</section>
<section class="Sh">
<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
<p class="Pp">The <code class="Nm">pseudofs</code> module offers an abstract API
for pseudo-file systems such as <a class="Xr">procfs(4)</a> and
<a class="Xr">linprocfs(4)</a>. It takes care of all the hairy bits like
interfacing with the VFS system, enforcing access control, keeping track of
file numbers, and cloning files and directories that are process-specific.
The consumer module, i.e., the module that implements the actual guts of the
file system, needs only provide the directory structure (represented by a
collection of structures declared and initialized by macros provided by
<code class="Nm">pseudofs</code>) and callbacks that report file attributes
or write the actual file contents into sbufs.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
ALSO</a></h1>
<p class="Pp"><a class="Xr">linprocfs(4)</a>, <a class="Xr">linsysfs(4)</a>,
<a class="Xr">procfs(4)</a>, <a class="Xr">sbuf(9)</a>,
<a class="Xr">vnode(9)</a></p>
</section>
<section class="Sh">
<h1 class="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
<p class="Pp">The <code class="Nm">pseudofs</code> module appeared in
<span class="Ux">FreeBSD 5.0</span>.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
<p class="Pp">The <code class="Nm">pseudofs</code> module and this manual page
were written by <span class="An">Dag-Erling Smørgrav</span>
<<a class="Mt" href="mailto:des@FreeBSD.org">des@FreeBSD.org</a>>.</p>
</section>
</div>
<table class="foot">
<tr>
<td class="foot-date">April 20, 2007</td>
<td class="foot-os">FreeBSD 15.0</td>
</tr>
</table>
|