UbixOS V2  2.0
namei.c File Reference
#include <sys/types.h>
#include <ubixos/errno.h>
#include <vfs/vfs.h>
#include <ubixos/sched.h>
Include dependency graph for namei.c:

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)
 

Function Documentation

◆ follow_link()

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.

Here is the call graph for this function:

◆ lookup()

int lookup ( struct inode dir,
const char *  name,
int  len,
struct inode **  result 
)

◆ namei()

int namei ( const char *  pathname,
struct inode base,
int  follow_links,
struct inode **  res_inode 
)

Definition at line 172 of file namei.c.

References NULL.

◆ permission()

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().

Here is the call graph for this function: