Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
svclock.c File Reference
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/sunrpc/clnt.h>
#include <linux/sunrpc/svc_xprt.h>
#include <linux/lockd/nlm.h>
#include <linux/lockd/lockd.h>
#include <linux/kthread.h>

Go to the source code of this file.

Macros

#define NLMDBG_FACILITY   NLMDBG_SVCLOCK
 
#define nlm_deadlock   nlm_lck_denied
 

Functions

void nlmsvc_traverse_blocks (struct nlm_host *host, struct nlm_file *file, nlm_host_match_fn_t match)
 
__be32 nlmsvc_lock (struct svc_rqst *rqstp, struct nlm_file *file, struct nlm_host *host, struct nlm_lock *lock, int wait, struct nlm_cookie *cookie, int reclaim)
 
__be32 nlmsvc_testlock (struct svc_rqst *rqstp, struct nlm_file *file, struct nlm_host *host, struct nlm_lock *lock, struct nlm_lock *conflock, struct nlm_cookie *cookie)
 
__be32 nlmsvc_unlock (struct net *net, struct nlm_file *file, struct nlm_lock *lock)
 
__be32 nlmsvc_cancel_blocked (struct net *net, struct nlm_file *file, struct nlm_lock *lock)
 
void nlmsvc_grant_reply (struct nlm_cookie *cookie, __be32 status)
 
unsigned long nlmsvc_retry_blocked (void)
 

Variables

struct lock_manager_operations nlmsvc_lock_operations
 

Macro Definition Documentation

#define nlm_deadlock   nlm_lck_denied

Definition at line 39 of file svclock.c.

#define NLMDBG_FACILITY   NLMDBG_SVCLOCK

Definition at line 34 of file svclock.c.

Function Documentation

__be32 nlmsvc_cancel_blocked ( struct net net,
struct nlm_file *  file,
struct nlm_lock lock 
)

Definition at line 632 of file svclock.c.

void nlmsvc_grant_reply ( struct nlm_cookie cookie,
__be32  status 
)

Definition at line 892 of file svclock.c.

__be32 nlmsvc_lock ( struct svc_rqst rqstp,
struct nlm_file *  file,
struct nlm_host *  host,
struct nlm_lock lock,
int  wait,
struct nlm_cookie cookie,
int  reclaim 
)

Definition at line 400 of file svclock.c.

unsigned long nlmsvc_retry_blocked ( void  )

Definition at line 937 of file svclock.c.

__be32 nlmsvc_testlock ( struct svc_rqst rqstp,
struct nlm_file *  file,
struct nlm_host *  host,
struct nlm_lock lock,
struct nlm_lock conflock,
struct nlm_cookie cookie 
)

Definition at line 507 of file svclock.c.

void nlmsvc_traverse_blocks ( struct nlm_host *  host,
struct nlm_file *  file,
nlm_host_match_fn_t  match 
)

Definition at line 312 of file svclock.c.

__be32 nlmsvc_unlock ( struct net net,
struct nlm_file *  file,
struct nlm_lock lock 
)

Definition at line 604 of file svclock.c.

Variable Documentation

struct lock_manager_operations nlmsvc_lock_operations
Initial value:
= {
.lm_compare_owner = nlmsvc_same_owner,
.lm_notify = nlmsvc_notify_blocked,
.lm_grant = nlmsvc_grant_deferred,
}

Definition at line 747 of file svclock.c.