1 <?xml version='1.0'?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
5 <refentry id="kdbus_fs">
8 <title>kdbus.fs</title>
9 <productname>kdbus.fs</productname>
13 <refentrytitle>kdbus.fs</refentrytitle>
14 <manvolnum>7</manvolnum>
18 <refname>kdbus.fs</refname>
19 <refpurpose>kdbus file system</refpurpose>
23 <title>File-system Layout</title>
26 The <emphasis>kdbusfs</emphasis> pseudo filesystem provides access to
27 kdbus entities, such as <emphasis>buses</emphasis> and
28 <emphasis>endpoints</emphasis>. Each time the filesystem is mounted,
29 a new, isolated kdbus instance is created, which is independent from the
33 The system-wide standard mount point for <emphasis>kdbusfs</emphasis> is
34 <constant>/sys/fs/kdbus</constant>.
38 Buses are represented as directories in the file system layout, whereas
39 endpoints are exposed as files inside these directories. At the top-level,
40 a <emphasis>control</emphasis> node is present, which can be opened to
41 create new buses via the <constant>KDBUS_CMD_BUS_MAKE</constant> ioctl.
42 Each <emphasis>bus</emphasis> shows a default endpoint called
43 <varname>bus</varname>, which can be opened to either create a connection
44 with the <constant>KDBUS_CMD_HELLO</constant> ioctl, or to create new
45 custom endpoints for the bus with
46 <constant>KDBUS_CMD_ENDPOINT_MAKE</constant>. See
48 <refentrytitle>kdbus.bus</refentrytitle>
49 <manvolnum>7</manvolnum>
52 <refentrytitle>kdbus.connection</refentrytitle>
53 <manvolnum>7</manvolnum>
56 <refentrytitle>kdbus.endpoint</refentrytitle>
57 <manvolnum>7</manvolnum>
62 <para>Following, you can see an example layout of the
63 <emphasis>kdbusfs</emphasis> filesystem:</para>
66 /sys/fs/kdbus/ ; mount-point
67 |-- 0-system ; bus directory
68 | |-- bus ; default endpoint
69 | `-- 1017-custom ; custom endpoint
70 |-- 1000-user ; bus directory
71 | |-- bus ; default endpoint
72 | |-- 1000-service-A ; custom endpoint
73 | `-- 1000-service-B ; custom endpoint
74 `-- control ; control file
79 <title>Mounting instances</title>
81 In order to get a new and separate kdbus environment, a new instance
82 of <emphasis>kdbusfs</emphasis> can be mounted like this:
85 # mount -t kdbusfs kdbusfs /tmp/new_kdbus/
90 <title>See Also</title>
91 <simplelist type="inline">
94 <refentrytitle>kdbus</refentrytitle>
95 <manvolnum>7</manvolnum>
100 <refentrytitle>kdbus.bus</refentrytitle>
101 <manvolnum>7</manvolnum>
106 <refentrytitle>kdbus.connection</refentrytitle>
107 <manvolnum>7</manvolnum>
112 <refentrytitle>kdbus.endpoint</refentrytitle>
113 <manvolnum>7</manvolnum>
118 <refentrytitle>mount</refentrytitle>
119 <manvolnum>8</manvolnum>