Home
last modified time | relevance | path

Searched full:sysfs (Results 1 – 25 of 1901) sorted by relevance

12345678910>>...77

/Linux-v5.10/Documentation/ABI/testing/
Dsysfs-tty29 These sysfs values expose the TIOCGSERIAL interface via
30 sysfs rather than via ioctls.
38 These sysfs values expose the TIOCGSERIAL interface via
39 sysfs rather than via ioctls.
47 These sysfs values expose the TIOCGSERIAL interface via
48 sysfs rather than via ioctls.
56 These sysfs values expose the TIOCGSERIAL interface via
57 sysfs rather than via ioctls.
65 These sysfs values expose the TIOCGSERIAL interface via
66 sysfs rather than via ioctls.
[all …]
/Linux-v5.10/Documentation/translations/zh_CN/filesystems/
Dsysfs.txt1 Chinese translated version of Documentation/filesystems/sysfs.rst
13 Documentation/filesystems/sysfs.rst 的中文翻译
27 sysfs - 用于导出内核对象(kobject)的文件系统
36 sysfs 简介:
39 sysfs 是一个最初基于 ramfs 且位于内存的文件系统。它提供导出内核
42 sysfs 始终与 kobject 的底层结构紧密相关。请阅读
47 使用 sysfs
50 只要内核配置中定义了 CONFIG_SYSFS ,sysfs 总是被编译进内核。你可
53 mount -t sysfs sysfs /sys
59 任何 kobject 在系统中注册,就会有一个目录在 sysfs 中被创建。这个
[all …]
/Linux-v5.10/drivers/staging/gasket/
Dgasket_sysfs.h3 * Set of common sysfs utilities.
9 * Gasket driver framework to manage their own set of sysfs entries, instead of
12 * The goal of these utilities is to allow for sysfs entries to be easily
13 * created without causing a proliferation of sysfs "show" functions. This
15 * sysfs entries is rarely performance-critical, this is likely acceptible.
24 #include <linux/sysfs.h>
29 /* The maximum number of sysfs nodes in a directory.
44 * Pairing of sysfs attribute and user data.
45 * Used in lookups in sysfs "show" functions to return attribute metadata.
48 /* The underlying sysfs device attribute associated with this data. */
[all …]
Dgasket_sysfs.c11 * Pair of kernel device and user-specified pointer. Used in lookups in sysfs
25 /* This device's set of sysfs attributes/nodes. */
39 * Data needed to manage users of this sysfs utility.
91 dev_dbg(mapping->device, "Removing Gasket sysfs mapping\n"); in put_mapping()
93 * We can't remove the sysfs nodes in the kref callback, since in put_mapping()
95 * Readers/writers of sysfs nodes, though, will be blocked on in put_mapping()
97 * sysfs nodes are removed outside the lock. in put_mapping()
165 dev_dbg(device, "Creating sysfs entries for device\n"); in gasket_sysfs_create_mapping()
171 "Attempting to re-initialize sysfs mapping for device\n"); in gasket_sysfs_create_mapping()
192 dev_dbg(device, "Creating sysfs mapping for device %s\n", in gasket_sysfs_create_mapping()
[all …]
/Linux-v5.10/fs/sysfs/
DKconfig2 config SYSFS config
3 bool "sysfs file system support" if EXPERT
7 The sysfs filesystem is a virtual filesystem that the kernel uses to
11 Users can use sysfs to ascertain useful information about the running
13 which driver each is bound to. sysfs can also be used to tune devices
16 Some system agents rely on the information in sysfs to operate.
17 /sbin/hotplug uses device and object attributes in sysfs to assist in
20 sysfs is currently used by the block subsystem to mount the root
21 partition. If sysfs is disabled you must specify the boot device on
/Linux-v5.10/Documentation/networking/
Dsysfs-tagging.rst4 Sysfs tagging
10 The problem. Network devices show up in sysfs and with the network
16 sysfs, sysfs now has tagging directory support.
19 the sysfs directory entries we ensure that we don't have conflicts
23 Each sysfs directory entry may be tagged with a namespace via the
29 Each sysfs superblock's kernfs_super_info contains an array
31 kobj_nstype first mounts sysfs, a new superblock is created. It
32 will be differentiated from other sysfs mounts by having its
35 the contents of other namespaces' sysfs mounts. Therefore, when a
/Linux-v5.10/include/uapi/linux/
Dif.h47 * set these flags using userspace utilities but there is also a sysfs
49 * are shared for all types of net_devices. The sysfs entries are available
50 * via /sys/class/net/<dev>/flags. Flags which can be toggled through sysfs
53 * even if you try to set them via sysfs. Flags which are always preserved
59 * @IFF_UP: interface is up. Can be toggled through sysfs.
61 * @IFF_DEBUG: turn on debugging. Can be toggled through sysfs.
64 * @IFF_NOTRAILERS: avoid use of trailers. Can be toggled through sysfs.
67 * @IFF_NOARP: no ARP protocol. Can be toggled through sysfs. Volatile.
68 * @IFF_PROMISC: receive all packets. Can be toggled through sysfs.
70 * sysfs.
[all …]
/Linux-v5.10/Documentation/filesystems/
Dsysfs.rst4 sysfs - _The_ filesystem for exporting kernel objects
18 sysfs is a ram-based filesystem initially based on ramfs. It provides
22 sysfs is tied inherently to the kobject infrastructure. Please read
27 Using sysfs
30 sysfs is always compiled in if CONFIG_SYSFS is defined. You can access
33 mount -t sysfs sysfs /sys
40 created for it in sysfs. That directory is created as a subdirectory
42 userspace. Top-level directories in sysfs represent the common
46 Sysfs internally stores a pointer to the kobject that implements a
48 the past this kobject pointer has been used by sysfs to do reference
[all …]
/Linux-v5.10/tools/testing/selftests/cpu-hotplug/
Dcpu-on-off-test.sh4 SYSFS=
19 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
21 if [ ! -d "$SYSFS" ]; then
22 echo $msg sysfs is not mounted >&2
26 if ! ls $SYSFS/devices/system/cpu/cpu* > /dev/null 2>&1; then
32 online_cpus=`cat $SYSFS/devices/system/cpu/online`
40 present_cpus=`cat $SYSFS/devices/system/cpu/present`
46 offline_cpus=`cat $SYSFS/devices/system/cpu/offline`
62 for cpu in $SYSFS/devices/system/cpu/cpu*; do
81 grep -q 1 $SYSFS/devices/system/cpu/cpu$1/online
[all …]
/Linux-v5.10/Documentation/admin-guide/
Dsysfs-rules.rst1 Rules on how to access information in sysfs
4 The kernel-exported sysfs exports internal kernel implementation details
7 internal API. Therefore, there are aspects of the sysfs interface that
10 To minimize the risk of breaking users of sysfs, which are in most cases
12 of sysfs must follow some rules to use an as-abstract-as-possible way to
15 abstractions these programs provide instead of accessing sysfs directly.
17 But if you really do want or need to access sysfs directly, please follow
19 versions of the sysfs interface.
22 It makes assumptions about sysfs which are not true. Its API does not
28 to sysfs has failed; it causes more problems than it solves. It
[all …]
/Linux-v5.10/tools/testing/selftests/cgroup/
Dwith_stress.sh19 echo $verb$subsys_ctrl >$sysfs/cgroup.subtree_control
28 sysfs=`mount -t cgroup2 | head -1 | awk '{ print $3 }'`
29 if [ ! -d "$sysfs" ]; then
34 if ! echo +$subsys_ctrl >$sysfs/cgroup.subtree_control ; then
35 echo "Skipping: cannot enable $subsys_ctrl in $sysfs" >&2
39 if ! echo -$subsys_ctrl >$sysfs/cgroup.subtree_control ; then
40 echo "Skipping: cannot disable $subsys_ctrl in $sysfs" >&2
50 sysfs=
/Linux-v5.10/Documentation/admin-guide/gpio/
Dsysfs.rst1 GPIO Sysfs Interface for Userspace
7 Documentation/ABI/obsolete/sysfs-gpio AND NEW USERSPACE CONSUMERS
8 ARE SUPPOSED TO USE THE CHARACTER DEVICE ABI. THIS OLD SYSFS ABI WILL
15 The deprecated sysfs ABI
18 configure a sysfs user interface to GPIOs. This is different from the
36 DO NOT ABUSE SYSFS TO CONTROL HARDWARE THAT HAS PROPER KERNEL DRIVERS.
40 Paths in Sysfs
97 poll(2) returns, either lseek(2) to the beginning of the sysfs
151 /* create a sysfs link to an exported GPIO node */
156 the sysfs interface by gpiod_export(). The driver can control whether the
[all …]
/Linux-v5.10/tools/testing/selftests/powerpc/dscr/
Ddscr_sysfs_test.c3 * POWER Data Stream Control Register (DSCR) sysfs interface test
5 * This test updates to system wide DSCR default through the sysfs interface
7 * well verified from their sysfs interfaces.
42 DIR *sysfs; in check_all_cpu_dscr_defaults() local
46 sysfs = opendir(CPU_PATH); in check_all_cpu_dscr_defaults()
47 if (!sysfs) { in check_all_cpu_dscr_defaults()
52 while ((dp = readdir(sysfs))) { in check_all_cpu_dscr_defaults()
71 closedir(sysfs); in check_all_cpu_dscr_defaults()
/Linux-v5.10/tools/testing/selftests/gpio/
Dgpio-mockup.sh6 #2: sysfs/debugfs not mount
11 SYSFS=
29 echo "-t: interface type: chardev(char device) and sysfs(being"
43 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
44 if [ ! -d "$SYSFS" ]; then
45 echo $msg sysfs is not mounted >&2
48 GPIO_SYSFS=`echo $SYSFS/class/gpio`
49 GPIO_DRV_SYSFS=`echo $SYSFS/devices/platform/$module/gpio`
56 source gpio-mockup-sysfs.sh
86 echo "WARNING: sysfs ABI of gpio is going to deprecated."
/Linux-v5.10/tools/testing/selftests/memory-hotplug/
Dmem-on-off-test.sh4 SYSFS=
18 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
20 if [ ! -d "$SYSFS" ]; then
21 echo $msg sysfs is not mounted >&2
25 if ! ls $SYSFS/devices/system/memory/memory* > /dev/null 2>&1; then
30 if ! grep -q 1 $SYSFS/devices/system/memory/memory*/removable; then
43 for memory in $SYSFS/devices/system/memory/memory*; do
63 grep -q online $SYSFS/devices/system/memory/memory$1/state
68 grep -q offline $SYSFS/devices/system/memory/memory$1/state
73 echo online > $SYSFS/devices/system/memory/memory$1/state
[all …]
/Linux-v5.10/Documentation/driver-api/driver-model/
Doverview.rst82 file system named sysfs.
89 none on /sys type sysfs (rw,noexec,nosuid,nodev)
93 The auto-mounting of sysfs is typically accomplished by an entry similar to
96 none /sys sysfs defaults 0 0
100 none /sys sysfs nodev,noexec,nosuid 0 0
102 If sysfs is not automatically mounted, you can always do it manually with::
104 # mount -t sysfs sysfs /sys
122 More information about the sysfs directory layout can be found in
124 Documentation/filesystems/sysfs.rst.
/Linux-v5.10/Documentation/admin-guide/laptops/
Dthinkpad-acpi.rst85 is a new sysfs-based interface which is not complete yet.
91 all new functionality will be implemented on the sysfs interface.
93 The sysfs interface tries to blend in the generic Linux sysfs subsystems
99 Notes about the sysfs interface
103 to the sysfs interfaces will be enforced, as will correctness in the
104 thinkpad-acpi's implementation of sysfs interfaces.
106 Also, any bugs in the thinkpad-acpi sysfs driver code or in the
107 thinkpad-acpi's implementation of the sysfs interfaces will be fixed for
112 Applications interfacing to the thinkpad-acpi sysfs interfaces must
113 follow all sysfs guidelines and correctly process all errors (the sysfs
[all …]
/Linux-v5.10/Documentation/hwmon/
Dlm93.rst83 sysfs files prochot1, prochot2, prochot1_avg, prochot2_avg, prochot1_max,
93 These intervals can be found in the sysfs files prochot1_interval and
105 non-zero integer to the sysfs file prochot_short.
112 The sysfs files prochot1_override and prochot2_override contain boolean
114 #P2_PROCHOT, respectively. The sysfs file prochot_override_duty_cycle
123 sysfs files vrdhot1 and vrdhot2. There is one value per file: a boolean for
136 fan tachometer with a pwm) to the sysfs file fan<n>_smart_tach. A zero
145 15.10.6 of the datasheet for details.) The sysfs files pwm1_override
147 where 0 disables and 1 enables the manual control mode. The sysfs files pwm1
159 The sysfs files pwm1_freq and pwm2_freq are used to select the frequency. The
[all …]
Dw83791d.rst93 See below for the description of the sysfs-interface.
100 The sysfs interface to the global enable is via the sysfs beep_enable file.
103 The sysfs interface to the beep bitmask has migrated from the original legacy
104 method of a single sysfs beep_mask file to a newer method using multiple
105 `*_beep` files as described in `Documentation/hwmon/sysfs-interface.rst`.
108 original legacy method used a single sysfs alarms file containing a bitmap
109 of triggered alarms. The newer method uses multiple sysfs `*_alarm` files
110 (again following the pattern described in sysfs-interface).
118 NOTE: All new code should be written to use the newer sysfs-interface
127 The sysfs-interface is documented in the 'sysfs-interface' file. Only
/Linux-v5.10/tools/testing/selftests/cpufreq/
Dmain.sh12 SYSFS=
49 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
51 if [ ! -d "$SYSFS" ]; then
52 echo $msg sysfs is not mounted >&2
56 CPUROOT=$SYSFS/devices/system/cpu
60 echo $msg cpus not available in sysfs >&2
65 echo $msg cpufreq directory not available in sysfs >&2
/Linux-v5.10/drivers/misc/habanalabs/include/common/
Dcpucp_if.h227 CPUCP_PACKET_TEMPERATURE_GET, /* sysfs */
228 CPUCP_PACKET_VOLTAGE_GET, /* sysfs */
229 CPUCP_PACKET_CURRENT_GET, /* sysfs */
230 CPUCP_PACKET_FAN_SPEED_GET, /* sysfs */
231 CPUCP_PACKET_PWM_GET, /* sysfs */
232 CPUCP_PACKET_PWM_SET, /* sysfs */
233 CPUCP_PACKET_FREQUENCY_SET, /* sysfs */
234 CPUCP_PACKET_FREQUENCY_GET, /* sysfs */
243 CPUCP_PACKET_FREQUENCY_CURR_GET, /* sysfs */
244 CPUCP_PACKET_MAX_POWER_GET, /* sysfs */
[all …]
/Linux-v5.10/drivers/remoteproc/
Dremoteproc_sysfs.c22 * By writing to the 'recovery' sysfs entry, we control the behavior of the
25 * The 'recovery' sysfs entry supports these commands:
70 * human readable configuration via sysfs. Always keep in sync with
89 * By writing to the 'coredump' sysfs entry, we control the behavior of the
92 * The 'coredump' sysfs entry supports these commands:
130 /* Expose the loaded / running firmware name via sysfs */
151 /* Change firmware name via sysfs */
196 * via sysfs. Always keep in sync with enum rproc_state
208 /* Expose the state of the remote processor via sysfs */
219 /* Change remote processor state via sysfs */
[all …]
/Linux-v5.10/tools/lib/api/fs/
Dfs.c112 .name = "sysfs",
212 * testing). This matches the recommendation in Documentation/admin-guide/sysfs-rules.rst
313 FS(sysfs, FS__SYSFS);
458 const char *sysfs = sysfs__mountpoint(); in sysfs__read_ull_base() local
460 if (!sysfs) in sysfs__read_ull_base()
463 snprintf(path, sizeof(path), "%s/%s", sysfs, entry); in sysfs__read_ull_base()
481 const char *sysfs = sysfs__mountpoint(); in sysfs__read_int() local
483 if (!sysfs) in sysfs__read_int()
486 snprintf(path, sizeof(path), "%s/%s", sysfs, entry); in sysfs__read_int()
494 const char *sysfs = sysfs__mountpoint(); in sysfs__read_str() local
[all …]
/Linux-v5.10/Documentation/driver-api/rapidio/
Dsysfs.rst2 Sysfs entries
5 The RapidIO sysfs files have moved to:
6 Documentation/ABI/testing/sysfs-bus-rapidio and
7 Documentation/ABI/testing/sysfs-class-rapidio
/Linux-v5.10/drivers/firmware/
DKconfig86 BIOS tries boot from. This information is then exported via sysfs.
102 bool "Add firmware-provided memory map to sysfs" if EXPERT
109 See also Documentation/ABI/testing/sysfs-firmware-memmap.
136 bool "Export DMI identification via sysfs to userspace"
145 tristate "DMI table support in sysfs"
146 depends on SYSFS && DMI
150 data via sysfs. This is useful for consuming the data without
176 Boot Firmware Table (iBFT) via sysfs to userspace. If you wish to
188 tristate "QEMU fw_cfg device support in sysfs"
189 depends on SYSFS && (ARM || ARM64 || PARISC || PPC_PMAC || SPARC || X86)
[all …]

12345678910>>...77