Home
last modified time | relevance | path

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

1234

/freebsd/sys/contrib/openzfs/cmd/zpool/os/linux/
H A Dzpool_vdev_os.c421 * Read from a sysfs file and return an allocated string. Removes
448 * Note, we can read less bytes than st_size, and that's ok. Sysfs in zpool_sysfs_gets()
470 * Write a string to a sysfs file.
491 /* Given a vdev nvlist_t, rescan its enclosure sysfs path */
516 * Given a vdev string return an allocated string containing the sysfs path to
538 /* Make sure we're getting the updated enclosure sysfs path */ in zpool_power_sysfs_path()
568 * Given a path to a sysfs power control file, return B_TRUE if you should use
582 * Check the sysfs power control value for a vdev.
620 * ENOENT: No sysfs path to power control
621 * EIO: Couldn't write sysfs powe
[all...]
/freebsd/sys/contrib/openzfs/cmd/zed/zed.d/
H A Dpool_import-led.sh26 # 3: The led sysfs path passed from ZFS does not exist
50 # Read an enclosure sysfs file, and write it if it's not already set to 'val'
53 # file: sysfs file to set (like /sys/class/enclosure/0:0:1:0/SLOT 10/fault)
57 # 0 on success, 3 on missing sysfs path
175 # 0 on success, 3 on missing sysfs path
207 # Skip anything with no sysfs LED entries
H A Dstatechange-led.sh26 # 3: The led sysfs path passed from ZFS does not exist
50 # Read an enclosure sysfs file, and write it if it's not already set to 'val'
53 # file: sysfs file to set (like /sys/class/enclosure/0:0:1:0/SLOT 10/fault)
57 # 0 on success, 3 on missing sysfs path
175 # 0 on success, 3 on missing sysfs path
207 # Skip anything with no sysfs LED entries
H A Dvdev_attach-led.sh26 # 3: The led sysfs path passed from ZFS does not exist
50 # Read an enclosure sysfs file, and write it if it's not already set to 'val'
53 # file: sysfs file to set (like /sys/class/enclosure/0:0:1:0/SLOT 10/fault)
57 # 0 on success, 3 on missing sysfs path
175 # 0 on success, 3 on missing sysfs path
207 # Skip anything with no sysfs LED entries
H A Dvdev_clear-led.sh26 # 3: The led sysfs path passed from ZFS does not exist
50 # Read an enclosure sysfs file, and write it if it's not already set to 'val'
53 # file: sysfs file to set (like /sys/class/enclosure/0:0:1:0/SLOT 10/fault)
57 # 0 on success, 3 on missing sysfs path
175 # 0 on success, 3 on missing sysfs path
207 # Skip anything with no sysfs LED entries
H A Dstatechange-slot_off.sh9 # FAULTED, then power down the slot via sysfs:
24 # 4: The enclosure sysfs path passed from ZFS does not exist
47 # Turn off the slot and wait for sysfs to report that the slot is off.
H A Dzed.rc110 # and NVMe PCI drives (assuming they're supported by Linux in sysfs).
148 # supports slot power control via sysfs.
155 # enclosure fully supports slot power control via sysfs.
H A Ddeadman-slot_off.sh31 # 4: The enclosure sysfs path passed from ZFS does not exist
54 # Turn off the slot and wait for sysfs to report that the slot is off.
/freebsd/sys/contrib/openzfs/lib/libzutil/os/linux/
H A Dzutil_device_path_os.c166 * Read the contents of a sysfs file into an allocated buffer and remove the
169 * This is useful for reading sysfs files that return a single string. Return
176 char buf[4096]; /* all sysfs files report 4k size */ in zfs_read_sysfs_file()
200 * Given a dev name like "nvme0n1", return the full PCI slot sysfs path to
209 * Returned string must be freed. Returns NULL on error or no sysfs path.
290 * Given a dev name like "sda", return the full enclosure sysfs path to
339 * Look though all sysfs entries in /sys/block/<dev>/device for in zfs_get_enclosure_sysfs_path()
414 * back to their enclosure device in sysfs. This will be useful for the
H A Dzutil_import_os.c772 * Rescan the enclosure sysfs path for turning on enclosure LEDs and store it
791 /* Add enclosure sysfs path (if disk is in an enclosure). */ in update_vdev_config_dev_sysfs_path()
799 * We couldn't dynamically scan the disk's enclosure sysfs path. in update_vdev_config_dev_sysfs_path()
801 * enclosure sysfs path in the nvlist, then keep using it. in update_vdev_config_dev_sysfs_path()
824 /* Rescan our enclosure sysfs path for this vdev */ in sysfs_path_pool_vdev_iter_f()
859 * We also store the enclosure sysfs path for turning on enclosure LEDs
/freebsd/sys/contrib/device-tree/Bindings/leds/
H A Dleds-trigger-pattern.txt15 For example (using sysfs interface):
35 For example (using sysfs interface):
/freebsd/stand/kboot/kboot/
H A Dinit.c35 host_mount("sysfs", "/sys", "sysfs", MS_RELATIME, ""); in init_fs_env()
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dthermal.c7 #include <linux/sysfs.h>
10 #include <linux/hwmon-sysfs.h>
/freebsd/sys/contrib/dev/athk/ath11k/
H A Dthermal.c7 #include <linux/sysfs.h>
10 #include <linux/hwmon-sysfs.h>
/freebsd/sys/contrib/openzfs/include/os/linux/kernel/linux/
H A Dmod_compat.h127 * "scope_prefix" the part of the sysctl / sysfs tree the node resides under
163 * "scope_prefix" the part of the the sysctl / sysfs tree the node resides under
/freebsd/lib/ofed/libibumad/
H A DMakefile10 sysfs.c
/freebsd/contrib/ntp/ntpd/
H A Dntp_ppsdev.c13 * quite a bit of file system traversal & lookup in the 'sysfs' tree.
115 * The issue here is that several files in the 'sysfs' tree claim a size
208 * given the dir-fd of a pps instance dir in the linux sysfs tree, get
254 * by processing the contents of the kernel sysfs tree.
/freebsd/sys/contrib/openzfs/module/zcommon/
H A Dzfeature_common.c251 zfs_mod_supported_impl(const char *scope, const char *name, const char *sysfs) in zfs_mod_supported_impl() argument
254 if (snprintf(path, sizeof (path), "%s%s%s%s%s", sysfs, in zfs_mod_supported_impl()
273 * Check both the primary and alternate sysfs locations to determine in zfs_mod_supported()
305 * query the running module, via sysfs, to determine which in zfs_mod_supported_feature()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_sysfs/
H A Dcleanup.ksh31 log_unsupported "sysfs is linux-only"
H A Dsetup.ksh31 log_unsupported "sysfs is linux-only"
H A Dzfeature_set_unsupported.ksh41 log_unsupported "sysfs is linux-only"
H A Dzfs_get_unsupported.ksh41 log_unsupported "sysfs is linux-only"
H A Dzfs_set_unsupported.ksh41 log_unsupported "sysfs is linux-only"
/freebsd/sys/contrib/device-tree/Bindings/power/supply/
H A Dlt3651-charger.txt19 cannot report changes and userspace will need to periodically read the sysfs
/freebsd/lib/ofed/libibverbs/
H A DMakefile19 sysfs.c \

1234