Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
fhandle.c File Reference
#include <linux/syscalls.h>
#include <linux/slab.h>
#include <linux/fs.h>
#include <linux/file.h>
#include <linux/mount.h>
#include <linux/namei.h>
#include <linux/exportfs.h>
#include <linux/fs_struct.h>
#include <linux/fsnotify.h>
#include <linux/personality.h>
#include <asm/uaccess.h>
#include "internal.h"
#include "mount.h"

Go to the source code of this file.

Functions

: name that should be converted to handle.

sys_name_to_handle_at: convert name to handle : directory relative to which name is interpreted if not absolute

: resulting file handle : mount id of the file system containing the file : flag value to indicate whether to follow symlink or not

->handle_size indicate the space available to store the variable part of the file handle in bytes. If there is not enough space, the field is updated to return the minimum value required.

 SYSCALL_DEFINE5 (name_to_handle_at, int, dfd, const char __user *, name, struct file_handle __user *, handle, int __user *, mnt_id, int, flag)
 
long do_handle_open (int mountdirfd, struct file_handle __user *ufh, int open_flag)
 
 SYSCALL_DEFINE3 (open_by_handle_at, int, mountdirfd, struct file_handle __user *, handle, int, flags)
 

Function Documentation

long do_handle_open ( int  mountdirfd,
struct file_handle __user ufh,
int  open_flag 
)

Definition at line 213 of file fhandle.c.

SYSCALL_DEFINE3 ( open_by_handle_at  ,
int  ,
mountdirfd  ,
struct file_handle __user ,
handle  ,
int  ,
flags   
)

sys_open_by_handle_at: Open the file handle : directory file descriptor : file handle to be opened : open flags.

indicate the directory file descriptor of the mount point. file handle is decoded relative to the vfsmount pointed by the . value is same as the open(2) flags.

Definition at line 254 of file fhandle.c.

SYSCALL_DEFINE5 ( name_to_handle_at  ,
int  ,
dfd  ,
const char __user ,
name  ,
struct file_handle __user ,
handle  ,
int __user ,
mnt_id  ,
int  ,
flag   
)

Definition at line 92 of file fhandle.c.