]> git.karo-electronics.de Git - linux-beck.git/commit
kernfs: Add API to generate relative kernfs path
authorAditya Kali <adityakali@google.com>
Fri, 29 Jan 2016 08:54:04 +0000 (02:54 -0600)
committerTejun Heo <tj@kernel.org>
Tue, 16 Feb 2016 18:04:58 +0000 (13:04 -0500)
commit9f6df573a4041f896cbf51f1b3743494196620a7
tree4ff0db9f1e815317630b24fdd32154eb72187d9e
parent223ffb29f9723a4b485cacf6dc7e6d639fffc322
kernfs: Add API to generate relative kernfs path

The new function kernfs_path_from_node() generates and returns kernfs
path of a given kernfs_node relative to a given parent kernfs_node.

Signed-off-by: Aditya Kali <adityakali@google.com>
Signed-off-by: Serge E. Hallyn <serge.hallyn@canonical.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
fs/kernfs/dir.c
include/linux/kernfs.h