diff options
author | Karel Zak | 2018-05-16 13:20:01 +0200 |
---|---|---|
committer | Karel Zak | 2018-06-21 13:07:46 +0200 |
commit | 8c3d9cad1ecb3c4ba78604ea4416620f6a6566ab (patch) | |
tree | b9505991b5bd2c0579996ac1527ae52d31a20ac9 /include | |
parent | lib/sysfs: make possible to call sysfs_blkdev_deinit_path() in loop (diff) | |
download | kernel-qcow2-util-linux-8c3d9cad1ecb3c4ba78604ea4416620f6a6566ab.tar.gz kernel-qcow2-util-linux-8c3d9cad1ecb3c4ba78604ea4416620f6a6566ab.tar.xz kernel-qcow2-util-linux-8c3d9cad1ecb3c4ba78604ea4416620f6a6566ab.zip |
lib/sysfs: add sysfs_blkdev_get_parent()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sysfs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysfs.h b/include/sysfs.h index ea87d6a12..a7e66f74b 100644 --- a/include/sysfs.h +++ b/include/sysfs.h @@ -68,7 +68,9 @@ void ul_sysfs_init_debug(void); struct path_cxt *ul_new_sysfs_path(dev_t devno, struct path_cxt *parent, const char *prefix); int sysfs_blkdev_init_path(struct path_cxt *pc, dev_t devno, struct path_cxt *parent); + int sysfs_blkdev_set_parent(struct path_cxt *pc, struct path_cxt *parent); +struct path_cxt *sysfs_blkdev_get_parent(struct path_cxt *pc); char *sysfs_blkdev_get_name(struct path_cxt *pc, char *buf, size_t bufsiz); int sysfs_blkdev_is_partition_dirent(DIR *dir, struct dirent *d, const char *parent_name); |