Searched refs:sysfs_path (Results 1 – 3 of 3) sorted by relevance
/freebsd/contrib/ofed/libibverbs/ |
H A D | sysfs.c | 46 static const char *sysfs_path; variable 52 if (sysfs_path) in ibv_get_sysfs_path() 53 return sysfs_path; in ibv_get_sysfs_path() 66 sysfs_path = dup = strndup(env, IBV_SYSFS_PATH_MAX); in ibv_get_sysfs_path() 73 sysfs_path = "/sys"; in ibv_get_sysfs_path() 75 return sysfs_path; in ibv_get_sysfs_path()
|
H A D | init.c | 59 char sysfs_path[IBV_SYSFS_PATH_MAX]; member 100 snprintf(sysfs_dev->sysfs_path, sizeof sysfs_dev->sysfs_path, in find_sysfs_devs() 106 if (ibv_read_sysfs_file(sysfs_dev->sysfs_path, "ibdev", in find_sysfs_devs() 117 if (ibv_read_sysfs_file(sysfs_dev->sysfs_path, "abi_version", in find_sysfs_devs() 163 vdev = driver->verbs_init_func(sysfs_dev->sysfs_path, sysfs_dev->abi_ver); in try_driver() 202 strcpy(dev->dev_path, sysfs_dev->sysfs_path); in try_driver() 283 const char *sysfs_path; in ibverbs_init() local 299 sysfs_path = ibv_get_sysfs_path(); in ibverbs_init() 300 if (!sysfs_path) in ibverbs_init() 303 ret = check_abi_version(sysfs_path); in ibverbs_init() [all …]
|
/freebsd/sys/contrib/openzfs/cmd/zpool/os/linux/ |
H A D | zpool_vdev_os.c | 572 zpool_power_use_word(char *sysfs_path) in zpool_power_use_word() argument 574 if (strcmp(&sysfs_path[strlen(sysfs_path) - strlen("power_status")], in zpool_power_use_word() 627 char *sysfs_path; in zpool_power() local 641 sysfs_path = zpool_power_sysfs_path(zhp, vdev); in zpool_power() 642 if (sysfs_path == NULL) in zpool_power() 645 if (zpool_power_use_word(sysfs_path)) { in zpool_power() 651 rc = zpool_sysfs_puts(sysfs_path, (char *)val); in zpool_power() 653 free(sysfs_path); in zpool_power()
|