Home
last modified time | relevance | path

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

/freebsd-11-stable/contrib/ofed/libibverbs/
HDsysfs.c46 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()
HDinit.c59 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 …]