• Home
  • Raw
  • Download

Lines Matching +full:directory +full:- +full:based

2 sysfs - _The_ filesystem for exporting kernel objects. 
14 sysfs is a ram-based filesystem initially based on ramfs. It provides
29 mount -t sysfs sysfs /sys
32 Directory Creation
35 For every kobject that is registered with the system, a directory is
36 created for it in sysfs. That directory is created as a subdirectory
38 userspace. Top-level directories in sysfs represent the common
43 directory in the kernfs_node object associated with the directory. In
120 Subsystem-Specific Callbacks
152 ssize_t ret = -EIO;
154 if (dev_attr->show)
155 ret = dev_attr->show(dev, dev_attr, buf);
158 dev_attr->show);
184 - On read(2), the show() method should fill the entire buffer.
193 - On write(2), sysfs expects the entire buffer to be passed during the
207 - Writing causes the show() method to be rearmed regardless of current
210 - The buffer will always be PAGE_SIZE bytes in length. On i386, this
213 - show() methods should return the number of bytes printed into the
216 - show() should only use sysfs_emit() or sysfs_emit_at() when formatting
219 - store() should return the number of bytes used from the buffer. If the
222 - show() or store() can always return errors. If a bad value comes
225 - The object passed to the methods will be pinned in memory via sysfs
236 return scnprintf(buf, PAGE_SIZE, "%s\n", dev->name);
242 snprintf(dev->name, sizeof(dev->name), "%.*s",
243 (int)min(count, sizeof(dev->name) - 1), buf);
254 Top Level Directory Layout
257 The sysfs directory arrangement exposes the relationship of kernel
260 The top level sysfs directory looks like:
275 bus/ contains flat directory layout of the various bus types in the
276 kernel. Each bus's directory contains two subdirectories:
282 that point to the device's directory under root/.
284 drivers/ contains a directory for each device driver that is loaded
288 fs/ contains a directory for some filesystems. Currently each
294 point to the sysfs directory for the given device. /sys/dev provides a
298 More information can driver-model specific features can be found in
299 Documentation/driver-model/.
311 - devices (include/linux/device.h)
312 ----------------------------------
333 - bus drivers (include/linux/device.h)
334 --------------------------------------
353 - device drivers (include/linux/device.h)
354 -----------------------------------------
379 The sysfs directory structure and the attributes in each directory define an