|
UbixOS V2
2.0
|

Go to the source code of this file.
Functions | |
| int | follow_link (struct inode *dir, struct inode *inode, int flag, int mode, struct inode **res_inode) |
| int | lookup (struct inode *dir, const char *name, int len, struct inode **result) |
| int | namei (const char *pathname, struct inode *base, int follow_links, struct inode **res_inode) |
| int | permission (struct inode *inode, int mask) |
| int follow_link | ( | struct inode * | dir, |
| struct inode * | inode, | ||
| int | flag, | ||
| int | mode, | ||
| struct inode ** | res_inode | ||
| ) |
Definition at line 34 of file namei.c.
References ENOENT, inode_operations::follow_link, inode::i_op, iput(), and NULL.

Definition at line 68 of file namei.c.
References _current, EACCES, ENOENT, ENOTDIR, inode::i_count, inode::i_op, inode::i_sb, iput(), inode_operations::lookup, MAY_EXEC, name, NULL, permission(), taskStruct::root, super_block::s_covered, and super_block::s_mounted.

| int permission | ( | struct inode * | inode, |
| int | mask | ||
| ) |
Definition at line 52 of file namei.c.
References _current, taskStruct::euid, inode::i_gid, inode::i_mode, inode::i_op, inode::i_uid, in_group_p(), and inode_operations::permission.
Referenced by lookup().
