Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
kthread.c File Reference
#include <linux/kthread.h>
#include <linux/freezer.h>
#include <linux/slab.h>
#include <linux/wait.h>
#include <linux/mount.h>
#include "ecryptfs_kernel.h"

Go to the source code of this file.

Data Structures

struct  ecryptfs_open_req
 
struct  ecryptfs_kthread_ctl
 

Macros

#define ECRYPTFS_KTHREAD_ZOMBIE   0x00000001
 

Functions

int __init ecryptfs_init_kthread (void)
 
void ecryptfs_destroy_kthread (void)
 
int ecryptfs_privileged_open (struct file **lower_file, struct dentry *lower_dentry, struct vfsmount *lower_mnt, const struct cred *cred)
 

Macro Definition Documentation

#define ECRYPTFS_KTHREAD_ZOMBIE   0x00000001

Definition at line 38 of file kthread.c.

Function Documentation

void ecryptfs_destroy_kthread ( void  )

Definition at line 103 of file kthread.c.

int __init ecryptfs_init_kthread ( void  )

Definition at line 86 of file kthread.c.

int ecryptfs_privileged_open ( struct file **  lower_file,
struct dentry lower_dentry,
struct vfsmount lower_mnt,
const struct cred cred 
)

ecryptfs_privileged_open : Result of dentry_open by root on lower dentry : Lower dentry for file to open : Lower vfsmount for file to open

This function gets a r/w file opened againt the lower dentry.

Returns zero on success; non-zero otherwise

Definition at line 130 of file kthread.c.