commit | bd96f76a2454c6b97d70945902e30b4c31510678 | [log] [tgz] |
---|---|---|
author | Tejun Heo <tj@kernel.org> | Fri Nov 20 15:55:52 2015 -0500 |
committer | Tejun Heo <tj@kernel.org> | Fri Nov 20 15:55:52 2015 -0500 |
tree | 6700838f83e76e2558f9a36742acf81b589d3d38 | |
parent | b11cfb5807e30333b36c02701382b820b7dcf0d5 [diff] |
kernfs: implement kernfs_walk_and_get() Implement kernfs_walk_and_get() which is similar to kernfs_find_and_get() but can walk a path instead of just a name. v2: Use strlcpy() instead of strlen() + memcpy() as suggested by David. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: David Miller <davem@davemloft.net>