Go to the documentation of this file.
62 if (((mode & mask & 0007) == mask))
80 if (len == 2 &&
name[0] ==
'.' &&
name[1] ==
'.') {
117 static int dir_namei(
const char * pathname,
int * namelen,
const char **
name,
struct inode * base,
struct inode ** res_inode) {
119 const char *thisname;
137 if ((c = *pathname) ==
'/') {
148 for (len = 0; (c = *(pathname++)) && (c !=
'/'); len++)
172 int namei(
const char * pathname,
struct inode * base,
int follow_links,
struct inode ** res_inode) {
173 const char *basename;
179 error = dir_namei(pathname, &namelen, &basename, base, &base);
void iput(struct inode *inode)
struct super_block * i_sb
int lookup(struct inode *dir, const char *name, int len, struct inode **result)
int(* follow_link)(struct inode *, struct inode *, int, int, struct inode **)
int follow_link(struct inode *dir, struct inode *inode, int flag, int mode, struct inode **res_inode)
int(* permission)(struct inode *, int)
int(* lookup)(struct inode *, const char *, int, struct inode **)
struct inode_operations * i_op
int kprintf(const char *,...)
int namei(const char *pathname, struct inode *base, int follow_links, struct inode **res_inode)
int in_group_p(gid_t grp)
int permission(struct inode *inode, int mask)