FreeBSD kernel kern code
vfs_extattr.c File Reference
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/capability.h>
#include <sys/lock.h>
#include <sys/mount.h>
#include <sys/mutex.h>
#include <sys/sysproto.h>
#include <sys/fcntl.h>
#include <sys/namei.h>
#include <sys/filedesc.h>
#include <sys/limits.h>
#include <sys/vnode.h>
#include <sys/proc.h>
#include <sys/extattr.h>
#include <security/audit/audit.h>
#include <security/mac/mac_framework.h>
Include dependency graph for vfs_extattr.c:

Go to the source code of this file.

Functions

 __FBSDID ("$BSDSUniX$")
 
int sys_extattrctl (struct thread *td, struct extattrctl_args *uap)
 
static int extattr_set_vp (struct vnode *vp, int attrnamespace, const char *attrname, void *data, size_t nbytes, struct thread *td)
 
int sys_extattr_set_fd (struct thread *td, struct extattr_set_fd_args *uap)
 
int sys_extattr_set_file (struct thread *td, struct extattr_set_file_args *uap)
 
int sys_extattr_set_link (struct thread *td, struct extattr_set_link_args *uap)
 
static int extattr_get_vp (struct vnode *vp, int attrnamespace, const char *attrname, void *data, size_t nbytes, struct thread *td)
 
int sys_extattr_get_fd (struct thread *td, struct extattr_get_fd_args *uap)
 
int sys_extattr_get_file (struct thread *td, struct extattr_get_file_args *uap)
 
int sys_extattr_get_link (struct thread *td, struct extattr_get_link_args *uap)
 
static int extattr_delete_vp (struct vnode *vp, int attrnamespace, const char *attrname, struct thread *td)
 
int sys_extattr_delete_fd (struct thread *td, struct extattr_delete_fd_args *uap)
 
int sys_extattr_delete_file (struct thread *td, struct extattr_delete_file_args *uap)
 
int sys_extattr_delete_link (struct thread *td, struct extattr_delete_link_args *uap)
 
static int extattr_list_vp (struct vnode *vp, int attrnamespace, void *data, size_t nbytes, struct thread *td)
 
int sys_extattr_list_fd (struct thread *td, struct extattr_list_fd_args *uap)
 
int sys_extattr_list_file (struct thread *td, struct extattr_list_file_args *uap)
 
int sys_extattr_list_link (struct thread *td, struct extattr_list_link_args *uap)
 

Function Documentation

__FBSDID ( "$BSDSUniX$"  )
static int extattr_delete_vp ( struct vnode *  vp,
int  attrnamespace,
const char *  attrname,
struct thread *  td 
)
static

Definition at line 512 of file vfs_extattr.c.

References vn_finished_write(), and vn_start_write().

Referenced by sys_extattr_delete_fd(), sys_extattr_delete_file(), and sys_extattr_delete_link().

Here is the call graph for this function:

Here is the caller graph for this function:

static int extattr_get_vp ( struct vnode *  vp,
int  attrnamespace,
const char *  attrname,
void *  data,
size_t  nbytes,
struct thread *  td 
)
static

Definition at line 332 of file vfs_extattr.c.

Referenced by sys_extattr_get_fd(), sys_extattr_get_file(), and sys_extattr_get_link().

Here is the caller graph for this function:

static int extattr_list_vp ( struct vnode *  vp,
int  attrnamespace,
void *  data,
size_t  nbytes,
struct thread *  td 
)
static

Definition at line 654 of file vfs_extattr.c.

Referenced by sys_extattr_list_fd(), sys_extattr_list_file(), and sys_extattr_list_link().

Here is the caller graph for this function:

static int extattr_set_vp ( struct vnode *  vp,
int  attrnamespace,
const char *  attrname,
void *  data,
size_t  nbytes,
struct thread *  td 
)
static

Definition at line 164 of file vfs_extattr.c.

References vn_finished_write(), and vn_start_write().

Referenced by sys_extattr_set_fd(), sys_extattr_set_file(), and sys_extattr_set_link().

Here is the call graph for this function:

Here is the caller graph for this function:

int sys_extattr_delete_fd ( struct thread *  td,
struct extattr_delete_fd_args *  uap 
)

Definition at line 545 of file vfs_extattr.c.

References extattr_delete_vp(), and getvnode().

Here is the call graph for this function:

int sys_extattr_delete_file ( struct thread *  td,
struct extattr_delete_file_args *  uap 
)

Definition at line 578 of file vfs_extattr.c.

References extattr_delete_vp(), namei(), NDFREE(), and vrele().

Here is the call graph for this function:

int sys_extattr_delete_link ( struct thread *  td,
struct extattr_delete_link_args *  uap 
)

Definition at line 611 of file vfs_extattr.c.

References extattr_delete_vp(), namei(), NDFREE(), and vrele().

Here is the call graph for this function:

int sys_extattr_get_fd ( struct thread *  td,
struct extattr_get_fd_args *  uap 
)

Definition at line 393 of file vfs_extattr.c.

References extattr_get_vp(), and getvnode().

Here is the call graph for this function:

int sys_extattr_get_file ( struct thread *  td,
struct extattr_get_file_args *  uap 
)

Definition at line 428 of file vfs_extattr.c.

References extattr_get_vp(), namei(), NDFREE(), and vrele().

Here is the call graph for this function:

int sys_extattr_get_link ( struct thread *  td,
struct extattr_get_link_args *  uap 
)

Definition at line 465 of file vfs_extattr.c.

References extattr_get_vp(), namei(), NDFREE(), and vrele().

Here is the call graph for this function:

int sys_extattr_list_fd ( struct thread *  td,
struct extattr_list_fd_args *  uap 
)

Definition at line 710 of file vfs_extattr.c.

References extattr_list_vp(), and getvnode().

Here is the call graph for this function:

int sys_extattr_list_file ( struct thread*  td,
struct extattr_list_file_args *  uap 
)

Definition at line 738 of file vfs_extattr.c.

References extattr_list_vp(), namei(), NDFREE(), and vrele().

Here is the call graph for this function:

int sys_extattr_list_link ( struct thread*  td,
struct extattr_list_link_args *  uap 
)

Definition at line 768 of file vfs_extattr.c.

References extattr_list_vp(), namei(), NDFREE(), and vrele().

Here is the call graph for this function:

int sys_extattr_set_fd ( struct thread *  td,
struct extattr_set_fd_args *  uap 
)

Definition at line 213 of file vfs_extattr.c.

References extattr_set_vp(), and getvnode().

Here is the call graph for this function:

int sys_extattr_set_file ( struct thread *  td,
struct extattr_set_file_args *  uap 
)

Definition at line 248 of file vfs_extattr.c.

References extattr_set_vp(), namei(), NDFREE(), and vrele().

Here is the call graph for this function:

int sys_extattr_set_link ( struct thread *  td,
struct extattr_set_link_args *  uap 
)

Definition at line 285 of file vfs_extattr.c.

References extattr_set_vp(), namei(), NDFREE(), and vrele().

Here is the call graph for this function:

int sys_extattrctl ( struct thread *  td,
struct extattrctl_args *  uap 
)

Definition at line 58 of file vfs_extattr.c.

References namei(), NDFREE(), vfs_busy(), vfs_unbusy(), vn_finished_write(), vn_start_write(), and vrele().

Here is the call graph for this function: