Lines Matching refs:path
56 * accept() returns a path name even if the connecting socket has closed
57 * in the meantime (BSD loses the path and gives up).
58 * accept() returns 0 length path for an unbound connector. BSD returns 16
59 * and a null first byte in the path (but not for gethost/peername - BSD bug ??)
240 * subtle. 108 is the longest valid AF_UNIX path for a binding.
320 struct dentry *dentry = unix_sk(s)->path.dentry;
522 struct path path;
533 path = u->path;
534 u->path.dentry = NULL;
535 u->path.mnt = NULL;
572 if (path.dentry)
573 path_put(&path);
821 u->path.dentry = NULL;
822 u->path.mnt = NULL;
953 struct path path;
958 err = kern_path(sunname->sun_path, LOOKUP_FOLLOW, &path);
961 inode = d_backing_inode(path.dentry);
974 touch_atime(&path);
976 path_put(&path);
988 dentry = unix_sk(u)->path.dentry;
990 touch_atime(&unix_sk(u)->path);
997 path_put(&path);
1003 static int unix_mknod(const char *sun_path, umode_t mode, struct path *res)
1006 struct path path;
1012 dentry = kern_path_create(AT_FDCWD, sun_path, &path, 0);
1020 err = security_path_mknod(&path, dentry, mode, 0);
1022 err = vfs_mknod(d_inode(path.dentry), dentry, mode, 0);
1024 res->mnt = mntget(path.mnt);
1028 done_path_create(&path, dentry);
1043 struct path path = { };
1063 err = unix_mknod(sun_path, mode, &path);
1091 hash = d_backing_inode(path.dentry)->i_ino & (UNIX_HASH_SIZE - 1);
1093 u->path = path;
1118 path_put(&path);
1381 * The contents of *(otheru->addr) and otheru->path
1387 * as well as otheru->path and otheru->addr itself.
1391 * to newu->path visible to anyone who gets newu->addr
1396 if (otheru->path.dentry) {
1397 path_get(&otheru->path);
1398 newu->path = otheru->path;
2061 /* this is fast path, we don't necessarily need to
2644 struct path path;
2654 path = unix_sk(sk)->path;
2655 if (!path.dentry)
2658 path_get(&path);
2664 f = dentry_open(&path, O_PATH, current_cred());
2673 path_put(&path);