Skip to content

Commit

Permalink
linux/dax: add some comments
Browse files Browse the repository at this point in the history
Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Jun 20, 2022
1 parent ed52753 commit 1bdb4e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hwloc/topology-linux.c
Expand Up @@ -6201,6 +6201,7 @@ hwloc_linuxfs_lookup_dax_class(struct hwloc_backend *backend, unsigned osdev_fla
if (dax_is_kmem(dirent->d_name, root_fd))
continue;

/* FIXME: target_node could be better than numa_node for finding the locality, but it's not possible yet, see #529 */
snprintf(path, sizeof(path), "/sys/bus/dax/devices/%s", dirent->d_name);
parent = hwloc_linuxfs_find_osdev_parent(backend, root_fd, path, osdev_flags | HWLOC_LINUXFS_OSDEV_FLAG_UNDER_BUS | HWLOC_LINUXFS_OSDEV_FLAG_USE_PARENT_ATTRS);
if (!parent)
Expand Down

0 comments on commit 1bdb4e3

Please sign in to comment.