Home
last modified time | relevance | path

Searched refs:sysfs_path (Results 1 – 25 of 118) sorted by relevance

12345

/dports/accessibility/feedbackd/feedbackd-b2a8061cdc7be4fa76f7fa976c67bac4f5a0055c/src/
H A Dfbd-ledctrl.c36 g_autofree gchar *path = g_strjoin ("/", sysfs_path, attr, NULL); in write_sysfs_attr()
60 read_sysfs_attr (const char *sysfs_path, const char *attr) in read_sysfs_attr() argument
64 g_autofree gchar *path = g_strjoin ("/", sysfs_path, attr, NULL); in read_sysfs_attr()
78 g_autofree gchar *path = g_strjoin ("/", sysfs_path, attr, NULL); in set_sysfs_attr_perm()
94 set_trigger (const char *sysfs_path, const char *trigger) in set_trigger() argument
104 val = read_sysfs_attr (sysfs_path, LED_TRIGGER_ATTR); in set_trigger()
144 g_autofree gchar *sysfs_path = NULL; in main() local
149 {"path", 'p', 0, G_OPTION_ARG_STRING, &sysfs_path, in main()
166 if (!sysfs_path) { in main()
177 if (!set_trigger (sysfs_path, trigger)) in main()
[all …]
/dports/sysutils/flashrom/flashrom-v1.2/
H A Dlinux_mtd.c123 static int get_mtd_info(const char *sysfs_path) in get_mtd_info() argument
129 if (read_sysfs_int(sysfs_path, "flags", &tmp)) in get_mtd_info()
305 char sysfs_path[32]; in linux_mtd_setup() local
309 if (snprintf(sysfs_path, sizeof(sysfs_path), "%s/mtd%d/", LINUX_MTD_SYSFS_ROOT, dev_num) < 0) in linux_mtd_setup()
333 if (snprintf(sysfs_path, sizeof(sysfs_path), "%s/mtd%d/", LINUX_MTD_SYSFS_ROOT, dev_num) < 0) in linux_mtd_setup()
335 if (get_mtd_info(sysfs_path)) in linux_mtd_setup()
384 char sysfs_path[32]; in linux_mtd_init() local
385 if (snprintf(sysfs_path, sizeof(sysfs_path), "%s/mtd%d", LINUX_MTD_SYSFS_ROOT, dev_num) < 0) in linux_mtd_init()
389 if (stat(sysfs_path, &s) < 0) { in linux_mtd_init()
391 msg_perr("%s does not exist\n", sysfs_path); in linux_mtd_init()
[all …]
/dports/audio/alsa-utils/alsa-utils-1.2.2/alsactl/
H A Dinit_sysfs.c21 static char sysfs_path[PATH_SIZE]; variable
41 strlcpy(sysfs_path, env, sizeof(sysfs_path)); in sysfs_init()
42 remove_trailing_chars(sysfs_path, '/'); in sysfs_init()
44 strlcpy(sysfs_path, "/sys", sizeof(sysfs_path)); in sysfs_init()
45 dbg("sysfs_path='%s'", sysfs_path); in sysfs_init()
47 strlcpy(sysfs_test, sysfs_path, sizeof(sysfs_test)); in sysfs_init()
50 strlcpy(sysfs_test, sysfs_path, sizeof(sysfs_test)); in sysfs_init()
53 error("sysfs path '%s' is invalid", sysfs_path); in sysfs_init()
85 sysfs_len = strlcpy(path_full, sysfs_path, sizeof(path_full)); in sysfs_attr_get_value()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/ui/events/ozone/evdev/
H A Dcapture_device_capabilities.py61 sysfs_path = '/sys/class/input/' + basename
66 uniq = open(sysfs_path + '/device/uniq', 'r').read().strip()
67 prop = open(sysfs_path + '/device/properties', 'r').read().strip()
68 ff = open(sysfs_path + '/device/capabilities/ff', 'r').read().strip()
71 bustype = open(sysfs_path + '/device/id/bustype', 'r').read().strip()
72 vendor = open(sysfs_path + '/device/id/vendor', 'r').read().strip()
73 product = open(sysfs_path + '/device/id/product', 'r').read().strip()
74 version = open(sysfs_path + '/device/id/version', 'r').read().strip()
77 ev = open(sysfs_path + '/device/capabilities/ev', 'r').read().strip()
92 ('path', os.path.realpath(sysfs_path)),
/dports/www/chromium-legacy/chromium-88.0.4324.182/ui/events/ozone/evdev/
H A Dcapture_device_capabilities.py61 sysfs_path = '/sys/class/input/' + basename
66 uniq = open(sysfs_path + '/device/uniq', 'r').read().strip()
67 prop = open(sysfs_path + '/device/properties', 'r').read().strip()
68 ff = open(sysfs_path + '/device/capabilities/ff', 'r').read().strip()
71 bustype = open(sysfs_path + '/device/id/bustype', 'r').read().strip()
72 vendor = open(sysfs_path + '/device/id/vendor', 'r').read().strip()
73 product = open(sysfs_path + '/device/id/product', 'r').read().strip()
74 version = open(sysfs_path + '/device/id/version', 'r').read().strip()
77 ev = open(sysfs_path + '/device/capabilities/ev', 'r').read().strip()
92 ('path', os.path.realpath(sysfs_path)),
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/third_party/pyserial/serial/tools/
H A Dlist_ports_linux.py65 def usb_sysfs_hw_string(sysfs_path): argument
67 bus, dev = os.path.basename(os.path.realpath(sysfs_path)).split('-')
68 snr = read_line(sysfs_path+'/serial')
74 read_line(sysfs_path+'/idVendor'),
75 read_line(sysfs_path+'/idProduct'),
79 def usb_lsusb_string(sysfs_path): argument
80 base = os.path.basename(os.path.realpath(sysfs_path))
83 dev = int(read_line(os.path.join(sysfs_path, 'devnum')))
/dports/net-mgmt/p5-FusionInventory-Agent/FusionInventory-Agent-2.5.2/resources/linux/hal/
H A Drh4-kvm18 pci.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:00.0' (string)
20 linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:00.0' (string)
37 pci.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:01.0' (string)
39 linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:01.0' (string)
73 linux.sysfs_path = '/sys/block/hda/hda1' (string)
104 linux.sysfs_path = '/sys/block/hda/hda2' (string)
135 linux.sysfs_path = '/sys/block/hda' (string)
200 linux.sysfs_path = '/sys/block/hdc' (string)
240 linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:01.1' (string)
405 linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:01.2' (string)
[all …]
H A Ddell-xt2444 linux.sysfs_path = '/sys/devices/pnp0/00:0c' (string)
456 linux.sysfs_path = '/sys/devices/pnp0/00:0b' (string)
468 linux.sysfs_path = '/sys/devices/pnp0/00:0a' (string)
480 linux.sysfs_path = '/sys/devices/pnp0/00:09' (string)
492 linux.sysfs_path = '/sys/devices/pnp0/00:08' (string)
502 linux.sysfs_path = '/sys/devices/pnp0/00:07' (string)
513 linux.sysfs_path = '/sys/devices/pnp0/00:06' (string)
525 linux.sysfs_path = '/sys/devices/pnp0/00:05' (string)
536 linux.sysfs_path = '/sys/devices/pnp0/00:04' (string)
548 linux.sysfs_path = '/sys/devices/pnp0/00:03' (string)
[all …]
/dports/devel/libvirt/libvirt-7.10.0/src/util/
H A Dvirvhba.c52 char *sysfs_path = NULL; in virVHBAPathExists() local
55 sysfs_path = g_strdup_printf("%s/host%d", in virVHBAPathExists()
58 if (virFileExists(sysfs_path)) in virVHBAPathExists()
61 VIR_FREE(sysfs_path); in virVHBAPathExists()
118 char *sysfs_path = NULL; in virVHBAGetConfig() local
123 sysfs_path = g_strdup_printf("%s/host%d/%s", in virVHBAGetConfig()
126 if (!virFileExists(sysfs_path)) in virVHBAGetConfig()
129 if (virFileReadAll(sysfs_path, 1024, &buf) < 0) in virVHBAGetConfig()
143 VIR_FREE(sysfs_path); in virVHBAGetConfig()
H A Dvirscsihost.c51 g_autofree char *sysfs_path = NULL; in virSCSIHostGetUniqueId() local
56 sysfs_path = g_strdup_printf("%s/host%d/unique_id", in virSCSIHostGetUniqueId()
59 if (virFileReadAllQuiet(sysfs_path, 1024, &buf) < 0) in virSCSIHostGetUniqueId()
H A Dvirutil.c1383 char *sysfs_path = NULL; in virSetDeviceUnprivSGIO() local
1388 if (!(sysfs_path = virGetUnprivSGIOSysfsPath(path, sysfs_dir))) in virSetDeviceUnprivSGIO()
1391 if (!virFileExists(sysfs_path)) { in virSetDeviceUnprivSGIO()
1399 if ((rc = virFileWriteStr(sysfs_path, val, 0)) < 0) { in virSetDeviceUnprivSGIO()
1400 virReportSystemError(-rc, _("failed to set %s"), sysfs_path); in virSetDeviceUnprivSGIO()
1406 VIR_FREE(sysfs_path); in virSetDeviceUnprivSGIO()
1416 char *sysfs_path = NULL; in virGetDeviceUnprivSGIO() local
1421 if (!(sysfs_path = virGetUnprivSGIOSysfsPath(path, sysfs_dir))) in virGetDeviceUnprivSGIO()
1424 if (!virFileExists(sysfs_path)) { in virGetDeviceUnprivSGIO()
1430 if (virFileReadAll(sysfs_path, 1024, &buf) < 0) in virGetDeviceUnprivSGIO()
[all …]
/dports/sysutils/libudisks/udisks-udisks-2.9.2/src/
H A Dudiskslinuxprovider.c912 const gchar *sysfs_path; in handle_block_uevent_for_mdraid_with_uuid() local
915 sysfs_path = g_udev_device_get_sysfs_path (device->udev_device); in handle_block_uevent_for_mdraid_with_uuid()
948 object = g_hash_table_lookup (provider->sysfs_path_to_mdraid, sysfs_path); in handle_block_uevent_for_mdraid_with_uuid()
1033 const gchar *sysfs_path; in handle_block_uevent_for_drive() local
1038 sysfs_path = g_udev_device_get_sysfs_path (device->udev_device); in handle_block_uevent_for_drive()
1042 object = g_hash_table_lookup (provider->sysfs_path_to_drive, sysfs_path); in handle_block_uevent_for_drive()
1077 if (g_hash_table_lookup (provider->sysfs_path_to_drive, sysfs_path) == NULL) in handle_block_uevent_for_drive()
1157 const gchar *sysfs_path; in handle_block_uevent_for_block() local
1162 sysfs_path = g_udev_device_get_sysfs_path (device->udev_device); in handle_block_uevent_for_block()
1166 object = g_hash_table_lookup (provider->sysfs_to_block, sysfs_path); in handle_block_uevent_for_block()
[all …]
/dports/devel/libvirt/libvirt-7.10.0/src/storage/
H A Dstorage_backend_iscsi.c91 virStorageBackendISCSIGetHostNumber(const char *sysfs_path, in virStorageBackendISCSIGetHostNumber() argument
98 VIR_DEBUG("Finding host number from '%s'", sysfs_path); in virStorageBackendISCSIGetHostNumber()
102 if (virDirOpen(&sysdir, sysfs_path) < 0) in virStorageBackendISCSIGetHostNumber()
105 while ((direrr = virDirRead(sysdir, &dirent, sysfs_path)) > 0) { in virStorageBackendISCSIGetHostNumber()
120 "with path '%s'"), sysfs_path); in virStorageBackendISCSIGetHostNumber()
132 g_autofree char *sysfs_path = NULL; in virStorageBackendISCSIFindLUs() local
134 sysfs_path = g_strdup_printf("/sys/class/iscsi_session/session%s/device", in virStorageBackendISCSIFindLUs()
137 if (virStorageBackendISCSIGetHostNumber(sysfs_path, &host) < 0) in virStorageBackendISCSIFindLUs()
/dports/devel/libvirt/libvirt-7.10.0/src/node_device/
H A Dnode_device_udev.c393 def->sysfs_path); in udevProcessPCI()
751 def->sysfs_path); in udevProcessSCSIDevice()
895 def->sysfs_path); in udevKludgeStorageType()
903 def->sysfs_path); in udevKludgeStorageType()
916 def->sysfs_path); in udevKludgeStorageType()
1079 udevGetCCWAddress(const char *sysfs_path, in udevGetCCWAddress() argument
1090 sysfs_path); in udevGetCCWAddress()
1140 udevGetVDPACharDev(const char *sysfs_path, in udevGetVDPACharDev() argument
1199 def->sysfs_path); in udevProcessAPCard()
1224 def->sysfs_path); in udevProcessAPQueue()
[all …]
/dports/graphics/colord/colord-1.3.5/src/plugins/
H A Dcd-plugin-scanner.c182 const gchar *sysfs_path; in cd_plugin_uevent_cb() local
189 sysfs_path = g_udev_device_get_sysfs_path (udev_device); in cd_plugin_uevent_cb()
190 device = g_hash_table_lookup (plugin->priv->devices, sysfs_path); in cd_plugin_uevent_cb()
194 g_debug ("CdPlugin: remove %s", sysfs_path); in cd_plugin_uevent_cb()
196 g_hash_table_remove (plugin->priv->devices, sysfs_path); in cd_plugin_uevent_cb()
H A Dcd-plugin-camera.c209 const gchar *sysfs_path; in cd_plugin_uevent_cb() local
216 sysfs_path = g_udev_device_get_sysfs_path (udev_device); in cd_plugin_uevent_cb()
217 device = g_hash_table_lookup (plugin->priv->devices, sysfs_path); in cd_plugin_uevent_cb()
221 g_debug ("CdPlugin: remove %s", sysfs_path); in cd_plugin_uevent_cb()
223 g_hash_table_remove (plugin->priv->devices, sysfs_path); in cd_plugin_uevent_cb()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/ui/events/devices/
H A Ddevice_util_linux.cc26 base::FilePath sysfs_path = GetInputPathInSys(path); in GetInputDeviceTypeFromPath() local
29 if (sysfs_path.empty()) in GetInputDeviceTypeFromPath()
33 for (base::FilePath path = sysfs_path; path != base::FilePath("/"); in GetInputDeviceTypeFromPath()
/dports/www/chromium-legacy/chromium-88.0.4324.182/ui/events/devices/
H A Ddevice_util_linux.cc26 base::FilePath sysfs_path = GetInputPathInSys(path); in GetInputDeviceTypeFromPath() local
29 if (sysfs_path.empty()) in GetInputDeviceTypeFromPath()
33 for (base::FilePath path = sysfs_path; path != base::FilePath("/"); in GetInputDeviceTypeFromPath()
/dports/benchmarks/stress-ng/stress-ng-0.13.09/
H A Dstress-sysfs.c53 char sysfs_path[PATH_MAX]; /* path to exercise */ member
145 (void)shim_strlcpy(path, ctxt->sysfs_path, sizeof(path)); in stress_sys_rw()
510 (void)shim_strlcpy(ctxt->sysfs_path, tmp, sizeof(ctxt->sysfs_path)); in stress_sys_dir()
662 shim_strlcpy(ctxt->sysfs_path, signum_path, sizeof(ctxt->sysfs_path)); in stress_sysfs()
729 ctxt->sysfs_path); in stress_sysfs()
730 stress_sys_add_bad(ctxt->sysfs_path); in stress_sysfs()
771 shim_strlcpy(ctxt->sysfs_path, "", sizeof(ctxt->sysfs_path)); in stress_sysfs()
/dports/devel/bullet/bullet3-3.21/examples/ThirdPartyLibs/serial/src/impl/list_ports/
H A Dlist_ports_linux.cc44 static string usb_sysfs_hw_string(const string& sysfs_path);
280 usb_sysfs_hw_string(const string& sysfs_path) in usb_sysfs_hw_string() argument
282 string serial_number = read_line(sysfs_path + "/serial"); in usb_sysfs_hw_string()
289 string vid = read_line(sysfs_path + "/idVendor"); in usb_sysfs_hw_string()
291 string pid = read_line(sysfs_path + "/idProduct"); in usb_sysfs_hw_string()
/dports/devel/py-bullet3/bullet3-3.21/examples/ThirdPartyLibs/serial/src/impl/list_ports/
H A Dlist_ports_linux.cc44 static string usb_sysfs_hw_string(const string& sysfs_path);
280 usb_sysfs_hw_string(const string& sysfs_path) in usb_sysfs_hw_string() argument
282 string serial_number = read_line(sysfs_path + "/serial"); in usb_sysfs_hw_string()
289 string vid = read_line(sysfs_path + "/idVendor"); in usb_sysfs_hw_string()
291 string pid = read_line(sysfs_path + "/idProduct"); in usb_sysfs_hw_string()
/dports/sysutils/libudisks/udisks-udisks-2.9.2/modules/iscsi/
H A Dudiskslinuxiscsisessionobject.c284 udisks_linux_iscsi_session_object_get_session_id_from_sysfs_path (const gchar *sysfs_path) in udisks_linux_iscsi_session_object_get_session_id_from_sysfs_path() argument
293 g_regex_match (regex, sysfs_path, 0, &match_info); in udisks_linux_iscsi_session_object_get_session_id_from_sysfs_path()
370 const gchar *sysfs_path; in udisks_linux_iscsi_session_object_process_uevent() local
376 sysfs_path = g_udev_device_get_sysfs_path (device->udev_device); in udisks_linux_iscsi_session_object_process_uevent()
377 session_id = udisks_linux_iscsi_session_object_get_session_id_from_sysfs_path (sysfs_path); in udisks_linux_iscsi_session_object_process_uevent()
H A Dudiskslinuxmoduleiscsi.c216 const gchar *sysfs_path; in udisks_linux_module_iscsi_new_object() local
223 sysfs_path = g_udev_device_get_sysfs_path (device->udev_device); in udisks_linux_module_iscsi_new_object()
224 session_id = udisks_linux_iscsi_session_object_get_session_id_from_sysfs_path (sysfs_path); in udisks_linux_module_iscsi_new_object()
/dports/net/mpich/mpich-3.4.3/modules/libfabric/prov/efa/src/
H A Defa_fabric.c256 char *sysfs_path = NULL; in get_sysfs_path() local
267 sysfs_path = strndup(env, IBV_SYSFS_PATH_MAX); in get_sysfs_path()
268 len = strlen(sysfs_path); in get_sysfs_path()
269 while (len > 0 && sysfs_path[len - 1] == '/') { in get_sysfs_path()
271 sysfs_path[len] = '\0'; in get_sysfs_path()
277 return sysfs_path; in get_sysfs_path()
292 char *sysfs_path; in efa_alloc_fid_nic() local
330 sysfs_path = get_sysfs_path(); in efa_alloc_fid_nic()
331 if (!sysfs_path) { in efa_alloc_fid_nic()
455 free(sysfs_path); in efa_alloc_fid_nic()
[all …]
/dports/astro/opencpn/OpenCPN-5.2.4/libs/serial/src/impl/list_ports/
H A Dlist_ports_linux.cc74 static string usb_sysfs_hw_string(const string& sysfs_path);
282 usb_sysfs_hw_string(const string& sysfs_path) in usb_sysfs_hw_string() argument
284 string serial_number = read_line( sysfs_path + "/serial" ); in usb_sysfs_hw_string()
291 string vid = read_line( sysfs_path + "/idVendor" ); in usb_sysfs_hw_string()
293 string pid = read_line( sysfs_path + "/idProduct" ); in usb_sysfs_hw_string()

12345