Home
last modified time | relevance | path

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

12345678910>>...110

/openbmc/linux/Documentation/ABI/testing/
H A 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 …]
H A 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 …]
H A Dsysfs-class-firmware5 Description: The data sysfs file is used for firmware-fallback and for
6 firmware uploads. Cat a firmware image to this sysfs file
7 after you echo 1 to the loading sysfs file. When the firmware
8 image write is complete, echo 0 to the loading sysfs file. This
30 for the status sysfs file and <ERROR> will be one of the
33 error sysfs file is only meaningful when the current firmware
41 Description: The loading sysfs file is used for both firmware-fallback and
43 you are writing a firmware file to the data sysfs node. Echo
57 written to the data sysfs file. This value is periodically
/openbmc/linux/Documentation/translations/zh_CN/filesystems/
H A 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 …]
/openbmc/linux/Documentation/translations/zh_TW/filesystems/
H A 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 …]
/openbmc/openbmc/meta-openembedded/meta-filesystems/dynamic-layers/meta-python/recipes-support/gpiod-sysfs-proxy/
H A Dgpiod-sysfs-proxy_0.1.1.bb1 SUMMARY = "User-space, libgpiod-based compatibility layer for linux GPIO sysfs interface."
11 file://gpiod-sysfs-proxy.service.in \
14 file://gpiod-sysfs-proxy.init.in \
20 # For full backward compatibility with the kernel sysfs interface, this option
21 # must be selected. However, we don't make it the default as - with kernel sysfs
32 …install -m 0644 ${UNPACKDIR}/gpiod-sysfs-proxy.service.in ${D}${systemd_system_unitdir}/gpiod-sysf…
44 … sed -i "s/@mountpoint@/$MOUNTPOINT/g" ${D}${systemd_system_unitdir}/gpiod-sysfs-proxy.service
47 … install -m 0755 ${UNPACKDIR}/gpiod-sysfs-proxy.init.in ${D}${sysconfdir}/init.d/gpiod-sysfs-proxy
48 sed -i "s/@mountpoint@/$MOUNTPOINT/g" ${D}${sysconfdir}/init.d/gpiod-sysfs-proxy
52 SYSTEMD_SERVICE:${PN} = "gpiod-sysfs-proxy.service"
[all …]
/openbmc/linux/fs/sysfs/
H A 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
/openbmc/linux/Documentation/networking/
H A 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
/openbmc/linux/include/uapi/linux/
H A 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 …]
/openbmc/linux/Documentation/filesystems/
H A 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 …]
/openbmc/linux/tools/testing/selftests/cpu-hotplug/
H A 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 …]
/openbmc/linux/tools/testing/selftests/powerpc/dscr/
H A 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()
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/openhpi/files/
H A Dopenhpi-sysfs-cross-compile.patch1 Fix sysfs when cross-compiling
3 Use proper paths for sysfs plugins when cross-compiling
11 diff --git a/plugins/sysfs/sysfs2hpi.c b/plugins/sysfs/sysfs2hpi.c
13 --- a/plugins/sysfs/sysfs2hpi.c
14 +++ b/plugins/sysfs/sysfs2hpi.c
20 +#include <sysfs/libsysfs.h>
/openbmc/linux/Documentation/admin-guide/
H A 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 …]
/openbmc/linux/tools/testing/selftests/gpio/
H A 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
/openbmc/linux/tools/testing/selftests/cgroup/
H A 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=
/openbmc/linux/Documentation/admin-guide/gpio/
H A 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 …]
/openbmc/linux/Documentation/gpu/amdgpu/
H A Dflashing.rst9 For supported GPUs, `amdgpu` will export a series of sysfs files that can be
15 2. "Write" the IFWI image to the sysfs file `psp_vbflash`. This will stage the IFWI in memory.
16 3. "Read" from the `psp_vbflash` sysfs file to initiate the flash process.
17 4. Poll the `psp_vbflash_status` sysfs file to determine when the flash process completes.
22 is done using the `usbc_pd_fw` sysfs file.
25 * Writing the name of a firmware payload stored in `/lib/firmware/amdgpu` to the sysfs file will in…
31 sysfs files
/openbmc/linux/Documentation/driver-api/firmware/
H A Dfw_upload.rst8 persistent sysfs nodes to enable users to initiate firmware updates for
11 upload uses the same *loading* and *data* sysfs files described in the
12 documentation for firmware fallback. It also adds additional sysfs files
21 firmware upload by echoing a 1 to the *loading* sysfs file for the target
22 device. Next, the user writes the firmware image to the *data* sysfs
24 sysfs file to signal completion. Echoing 0 to *loading* also triggers the
99 Corresponding strings are reported through the status sysfs node that
113 Sysfs Attributes
116 In addition to the *loading* and *data* sysfs files, there are additional
117 sysfs files to monitor the status of the data transfer to the target
[all …]
/openbmc/linux/Documentation/admin-guide/laptops/
H A Dthinkpad-acpi.rst87 is a new sysfs-based interface which is not complete yet.
93 all new functionality will be implemented on the sysfs interface.
95 The sysfs interface tries to blend in the generic Linux sysfs subsystems
101 Notes about the sysfs interface
105 to the sysfs interfaces will be enforced, as will correctness in the
106 thinkpad-acpi's implementation of sysfs interfaces.
108 Also, any bugs in the thinkpad-acpi sysfs driver code or in the
109 thinkpad-acpi's implementation of the sysfs interfaces will be fixed for
114 Applications interfacing to the thinkpad-acpi sysfs interfaces must
115 follow all sysfs guidelines and correctly process all errors (the sysfs
[all …]
/openbmc/linux/Documentation/driver-api/driver-model/
H A 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.
/openbmc/openbmc/meta-google/recipes-google/gpio/gpio-ctrl/
H A Dlib.sh44 # Looks up the sysfs GPIO number
69 local sysfs
71 sysfs="${gpio_sysfs_lookup_cache["$id"]}"
75 if ! sysfs="$(grep -xl "$val" /sys/class/gpio/gpiochip*/label)"; then
79 sysfs="${sysfs%/label}"
82 for sysfs in $(echo /sys/class/gpio/gpiochip*); do
85 link="$(readlink -f "$sysfs/device/of_node" 2>/dev/null)" || continue
87 sysfs=
89 if [ -z "$sysfs" ]; then
99 gpio_sysfs_lookup_cache["$id"]="$sysfs"
[all …]
/openbmc/docs/designs/
H A Dmultihost-physical-led.md12 The existing phosphor-led-sysfs design exposes one service per LED configuration
29 Based on the current design in phosphor-led-sysfs application, pairing groups
39 KERNEL META-PHOSPHOR PHOSPHOR-LED-SYSFS SERVICE
73 PHOSPHSOR-LED-SYSFS DAEMON
77 The existing design uses sysfs entry as udev events for particular LED and
104 - Add DBUS API method for phosphor-led-sysfs daemon.
112 KERNEL PHOSPHOR-LED-SYSFS DAEMON
116 | LED 1 | Event 2 | UDEV | | SYSFS | | EXECUTABLE |
153 - Dbus API method will be created in the phosphor-led-sysfs repository under
154 **_xyz.openbmc_project.Led.Sysfs.Internal_** interface name to add or remove
[all …]
/openbmc/openbmc/meta-openembedded/meta-filesystems/dynamic-layers/meta-python/recipes-support/gpiod-sysfs-proxy/gpiod-sysfs-proxy/
H A Dgpiod-sysfs-proxy.init.in3 # Provides: gpiod-sysfs-proxy
8 # Short-Description: User-space, libgpiod-based compatibility layer for linux GPIO sysfs interfa…
12 # Debian init.d script for gpiod-sysfs-proxy
20 PROG="/usr/bin/gpiod-sysfs-proxy"
21 NAME="gpiod-sysfs-proxy"
33 mount -t sysfs sysfs /run/gpio/sys -o nosuid,nodev,noexec
/openbmc/openpower-proc-control/
H A Dtargeting.hpp28 * @param[in] - The sysfs device path
49 * Returns the CFAM sysfs path
69 * The sysfs device path for the CFAM
86 * Scans sysfs to find all processors and creates Target objects
88 * @param[in] fsiMasterDev - the sysfs device for the master
89 * @param[in] fsiSlaveDirectory - the base sysfs dir for slaves
131 * The path to the fsi-master sysfs device to access
136 * The path to the fsi slave sysfs base directory

12345678910>>...110