Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
svc.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/sysctl.h>
#include <linux/moduleparam.h>
#include <linux/sched.h>
#include <linux/errno.h>
#include <linux/in.h>
#include <linux/uio.h>
#include <linux/smp.h>
#include <linux/mutex.h>
#include <linux/kthread.h>
#include <linux/freezer.h>
#include <linux/sunrpc/types.h>
#include <linux/sunrpc/stats.h>
#include <linux/sunrpc/clnt.h>
#include <linux/sunrpc/svc.h>
#include <linux/sunrpc/svcsock.h>
#include <net/ip.h>
#include <linux/lockd/lockd.h>
#include <linux/nfs.h>
#include "netns.h"

Go to the source code of this file.

Macros

#define NLMDBG_FACILITY   NLMDBG_SVC
 
#define LOCKD_BUFSIZE   (1024 + NLMSVC_XDRSIZE)
 
#define ALLOWED_SIGS   (sigmask(SIGKILL))
 
#define param_set_min_max(name, type, which_strtol, min, max)
 
#define NLM_NRVERS   ARRAY_SIZE(nlmsvc_version)
 

Functions

 EXPORT_SYMBOL_GPL (nlmsvc_ops)
 
int lockd_up (struct net *net)
 
 EXPORT_SYMBOL_GPL (lockd_up)
 
void lockd_down (struct net *net)
 
 EXPORT_SYMBOL_GPL (lockd_down)
 
 param_set_min_max (port, int, simple_strtol, 0, 65535)
 
 module_init (init_nlm)
 
 module_exit (exit_nlm)
 

Variables

struct nlmsvc_bindingnlmsvc_ops
 
unsigned long nlmsvc_timeout
 
int lockd_net_id
 

Macro Definition Documentation

#define ALLOWED_SIGS   (sigmask(SIGKILL))

Definition at line 42 of file svc.c.

#define LOCKD_BUFSIZE   (1024 + NLMSVC_XDRSIZE)

Definition at line 41 of file svc.c.

#define NLM_NRVERS   ARRAY_SIZE(nlmsvc_version)

Definition at line 675 of file svc.c.

#define NLMDBG_FACILITY   NLMDBG_SVC

Definition at line 40 of file svc.c.

#define param_set_min_max (   name,
  type,
  which_strtol,
  min,
  max 
)
Value:
static int param_set_##name(const char *val, struct kernel_param *kp) \
{ \
char *endp; \
__typeof__(type) num = which_strtol(val, &endp, 0); \
if (endp == val || *endp || num < (min) || num > (max)) \
*((type *) kp->arg) = num; \
return 0; \
}

Definition at line 516 of file svc.c.

Function Documentation

EXPORT_SYMBOL_GPL ( nlmsvc_ops  )
EXPORT_SYMBOL_GPL ( lockd_up  )
EXPORT_SYMBOL_GPL ( lockd_down  )
void lockd_down ( struct net net)

Definition at line 404 of file svc.c.

int lockd_up ( struct net net)

Definition at line 362 of file svc.c.

module_exit ( exit_nlm  )
module_init ( init_nlm  )
param_set_min_max ( port  ,
int  ,
simple_strtol  ,
,
65535   
)

Definition at line 559 of file svc.c.

Variable Documentation

int lockd_net_id

Definition at line 55 of file svc.c.

struct nlmsvc_binding* nlmsvc_ops

Definition at line 46 of file svc.c.

unsigned long nlmsvc_timeout

Definition at line 53 of file svc.c.