• Home
  • Raw
  • Download

Lines Matching refs:buflen

3033 static int prepend(char **buffer, int *buflen, const char *str, int namelen)  in prepend()  argument
3035 *buflen -= namelen; in prepend()
3036 if (*buflen < 0) in prepend()
3061 static int prepend_name(char **buffer, int *buflen, const struct qstr *name) in prepend_name() argument
3069 *buflen -= dlen + 1; in prepend_name()
3070 if (*buflen < 0) in prepend_name()
3102 char **buffer, int *buflen) in prepend_path() argument
3119 blen = *buflen; in prepend_path()
3133 blen = *buflen; in prepend_path()
3179 *buflen = blen; in prepend_path()
3201 char *buf, int buflen) in __d_path() argument
3203 char *res = buf + buflen; in __d_path()
3206 prepend(&res, &buflen, "\0", 1); in __d_path()
3207 error = prepend_path(path, root, &res, &buflen); in __d_path()
3217 char *buf, int buflen) in d_absolute_path() argument
3220 char *res = buf + buflen; in d_absolute_path()
3223 prepend(&res, &buflen, "\0", 1); in d_absolute_path()
3224 error = prepend_path(path, &root, &res, &buflen); in d_absolute_path()
3239 char **buf, int *buflen) in path_with_deleted() argument
3241 prepend(buf, buflen, "\0", 1); in path_with_deleted()
3243 int error = prepend(buf, buflen, " (deleted)", 10); in path_with_deleted()
3248 return prepend_path(path, root, buf, buflen); in path_with_deleted()
3251 static int prepend_unreachable(char **buffer, int *buflen) in prepend_unreachable() argument
3253 return prepend(buffer, buflen, "(unreachable)", 13); in prepend_unreachable()
3282 char *d_path(const struct path *path, char *buf, int buflen) in d_path() argument
3284 char *res = buf + buflen; in d_path()
3301 return path->dentry->d_op->d_dname(path->dentry, buf, buflen); in d_path()
3305 error = path_with_deleted(path, &root, &res, &buflen); in d_path()
3317 char *dynamic_dname(struct dentry *dentry, char *buffer, int buflen, in dynamic_dname() argument
3328 if (sz > sizeof(temp) || sz > buflen) in dynamic_dname()
3331 buffer += buflen - sz; in dynamic_dname()
3335 char *simple_dname(struct dentry *dentry, char *buffer, int buflen) in simple_dname() argument
3337 char *end = buffer + buflen; in simple_dname()
3339 if (prepend(&end, &buflen, " (deleted)", 11) || in simple_dname()
3340 prepend(&end, &buflen, dentry->d_name.name, dentry->d_name.len) || in simple_dname()
3341 prepend(&end, &buflen, "/", 1)) in simple_dname()
3350 static char *__dentry_path(struct dentry *d, char *buf, int buflen) in __dentry_path() argument
3357 if (buflen < 2) in __dentry_path()
3363 end = buf + buflen; in __dentry_path()
3364 len = buflen; in __dentry_path()
3395 char *dentry_path_raw(struct dentry *dentry, char *buf, int buflen) in dentry_path_raw() argument
3397 return __dentry_path(dentry, buf, buflen); in dentry_path_raw()
3401 char *dentry_path(struct dentry *dentry, char *buf, int buflen) in dentry_path() argument
3407 p = buf + buflen; in dentry_path()
3408 if (prepend(&p, &buflen, "//deleted", 10) != 0) in dentry_path()
3410 buflen++; in dentry_path()
3412 retval = __dentry_path(dentry, buf, buflen); in dentry_path()
3466 int buflen = PATH_MAX; in SYSCALL_DEFINE2() local
3468 prepend(&cwd, &buflen, "\0", 1); in SYSCALL_DEFINE2()
3469 error = prepend_path(&pwd, &root, &cwd, &buflen); in SYSCALL_DEFINE2()
3477 error = prepend_unreachable(&cwd, &buflen); in SYSCALL_DEFINE2()