Home
last modified time | relevance | path

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

12345678910>>...204

/kernel/linux/linux-6.6/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 …]
Dsysfs-bus-event_source-devices-hv_gpci6 (See ABI/testing/sysfs-bus-event_source-devices-format).
81 This sysfs file exposes the cpumask which is designated to make
88 This sysfs file exposes the system topology information by making HCALL
92 * This sysfs file will be created only for power10 and above platforms.
94 * User needs root privileges to read data from this sysfs file.
96 * This sysfs file will be created, only when the HCALL returns "H_SUCCESS",
102 * The end user reading this sysfs file must decode the content as per
105 Possible error codes while reading this sysfs file:
120 This sysfs file exposes the system topology information by making HCALL
124 * This sysfs file will be created only for power10 and above platforms.
[all …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-6.6/Documentation/translations/zh_TW/filesystems/
Dsysfs.txt3 Chinese translated version of Documentation/filesystems/sysfs.rst
15 Documentation/filesystems/sysfs.rst 的中文翻譯
30 sysfs - 用於導出內核對象(kobject)的文件系統
39 sysfs 簡介:
42 sysfs 是一個最初基於 ramfs 且位於內存的文件系統。它提供導出內核
45 sysfs 始終與 kobject 的底層結構緊密相關。請閱讀
50 使用 sysfs
53 只要內核配置中定義了 CONFIG_SYSFS ,sysfs 總是被編譯進內核。你可
56 mount -t sysfs sysfs /sys
62 任何 kobject 在系統中註冊,就會有一個目錄在 sysfs 中被創建。這個
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.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
/kernel/linux/linux-6.6/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
/kernel/linux/linux-6.6/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
/kernel/linux/linux-5.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
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-6.6/tools/testing/selftests/cpu-hotplug/
Dcpu-on-off-test.sh4 SYSFS=
20 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
22 if [ ! -d "$SYSFS" ]; then
23 echo $msg sysfs is not mounted >&2
27 if ! ls $SYSFS/devices/system/cpu/cpu* > /dev/null 2>&1; then
33 online_cpus=`cat $SYSFS/devices/system/cpu/online`
41 present_cpus=`cat $SYSFS/devices/system/cpu/present`
47 offline_cpus=`cat $SYSFS/devices/system/cpu/offline`
63 for cpu in $SYSFS/devices/system/cpu/cpu*; do
82 grep -q 1 $SYSFS/devices/system/cpu/cpu$1/online
[all …]
/kernel/linux/linux-6.6/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.
32 DIR *sysfs; in check_all_cpu_dscr_defaults() local
36 sysfs = opendir(CPU_PATH); in check_all_cpu_dscr_defaults()
37 if (!sysfs) { in check_all_cpu_dscr_defaults()
42 while ((dp = readdir(sysfs))) { in check_all_cpu_dscr_defaults()
59 closedir(sysfs); in check_all_cpu_dscr_defaults()
63 closedir(sysfs); in check_all_cpu_dscr_defaults()
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.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.
43 DIR *sysfs; in check_all_cpu_dscr_defaults() local
47 sysfs = opendir(CPU_PATH); in check_all_cpu_dscr_defaults()
48 if (!sysfs) { in check_all_cpu_dscr_defaults()
53 while ((dp = readdir(sysfs))) { in check_all_cpu_dscr_defaults()
70 closedir(sysfs); in check_all_cpu_dscr_defaults()
74 closedir(sysfs); in check_all_cpu_dscr_defaults()
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/tools/testing/selftests/gpio/
Dgpio-mockup-sysfs.sh4 # Overrides functions in gpio-mockup.sh to test using the GPIO SYSFS uAPI
6 SYSFS=`grep -w sysfs /proc/mounts | cut -f2 -d' '`
7 [ -d "$SYSFS" ] || skip "sysfs is not mounted"
9 GPIO_SYSFS="${SYSFS}/class/gpio"
12 PLATFORM_SYSFS=$SYSFS/devices/platform
17 # determine the sysfs GPIO number given the $chip and $offset
/kernel/linux/linux-5.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=
/kernel/linux/linux-6.6/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=
/kernel/linux/linux-6.6/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 …]

12345678910>>...204