Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
clntlock.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/time.h>
#include <linux/nfs_fs.h>
#include <linux/sunrpc/clnt.h>
#include <linux/sunrpc/svc.h>
#include <linux/lockd/lockd.h>
#include <linux/kthread.h>

Go to the source code of this file.

Data Structures

struct  nlm_wait
 

Macros

#define NLMDBG_FACILITY   NLMDBG_CLIENT
 

Functions

struct nlm_host * nlmclnt_init (const struct nlmclnt_initdata *nlm_init)
 
 EXPORT_SYMBOL_GPL (nlmclnt_init)
 
void nlmclnt_done (struct nlm_host *host)
 
 EXPORT_SYMBOL_GPL (nlmclnt_done)
 
struct nlm_waitnlmclnt_prepare_block (struct nlm_host *host, struct file_lock *fl)
 
void nlmclnt_finish_block (struct nlm_wait *block)
 
int nlmclnt_block (struct nlm_wait *block, struct nlm_rqst *req, long timeout)
 
__be32 nlmclnt_grant (const struct sockaddr *addr, const struct nlm_lock *lock)
 
void nlmclnt_recovery (struct nlm_host *host)
 

Macro Definition Documentation

#define NLMDBG_FACILITY   NLMDBG_CLIENT

Definition at line 19 of file clntlock.c.

Function Documentation

EXPORT_SYMBOL_GPL ( nlmclnt_init  )
EXPORT_SYMBOL_GPL ( nlmclnt_done  )
int nlmclnt_block ( struct nlm_wait block,
struct nlm_rqst *  req,
long  timeout 
)

Definition at line 124 of file clntlock.c.

void nlmclnt_done ( struct nlm_host *  host)

nlmclnt_done - Release resources allocated by nlmclnt_init() : nlm_host structure reserved by nlmclnt_init()

Definition at line 81 of file clntlock.c.

void nlmclnt_finish_block ( struct nlm_wait block)

Definition at line 111 of file clntlock.c.

__be32 nlmclnt_grant ( const struct sockaddr addr,
const struct nlm_lock lock 
)

Definition at line 154 of file clntlock.c.

struct nlm_host* nlmclnt_init ( const struct nlmclnt_initdata nlm_init)
read

nlmclnt_init - Set up per-NFS mount point lockd data structures : pointer to arguments structure

Returns pointer to an appropriate nlm_host struct, or an ERR_PTR value.

Definition at line 53 of file clntlock.c.

struct nlm_wait* nlmclnt_prepare_block ( struct nlm_host *  host,
struct file_lock fl 
)
read

Definition at line 93 of file clntlock.c.

void nlmclnt_recovery ( struct nlm_host *  host)

Definition at line 204 of file clntlock.c.