Lines Matching refs:buflen
42 static int kernfs_name_locked(struct kernfs_node *kn, char *buf, size_t buflen) in kernfs_name_locked() argument
44 return strlcpy(buf, kn->parent ? kn->name : "/", buflen); in kernfs_name_locked()
119 char *buf, size_t buflen) in kernfs_path_from_node_locked() argument
130 return strlcpy(buf, "/", buflen); in kernfs_path_from_node_locked()
144 len < buflen ? buflen - len : 0); in kernfs_path_from_node_locked()
151 len < buflen ? buflen - len : 0); in kernfs_path_from_node_locked()
153 len < buflen ? buflen - len : 0); in kernfs_path_from_node_locked()
171 int kernfs_name(struct kernfs_node *kn, char *buf, size_t buflen) in kernfs_name() argument
177 ret = kernfs_name_locked(kn, buf, buflen); in kernfs_name()
199 char *buf, size_t buflen) in kernfs_path_from_node() argument
205 ret = kernfs_path_from_node_locked(to, from, buf, buflen); in kernfs_path_from_node()