#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/ktime.h>
#include <linux/slab.h>
#include <linux/sunrpc/clnt.h>
#include <linux/sunrpc/xprtsock.h>
#include <linux/sunrpc/svc.h>
#include <linux/lockd/lockd.h>
#include <asm/unaligned.h>
#include "netns.h"
Go to the source code of this file.
Definition at line 23 of file mon.c.
#define NSM_PROGRAM 100024 |
Definition at line 24 of file mon.c.
Definition at line 25 of file mon.c.
- Enumerator:
NSMPROC_NULL |
|
NSMPROC_STAT |
|
NSMPROC_MON |
|
NSMPROC_UNMON |
|
NSMPROC_UNMON_ALL |
|
NSMPROC_SIMU_CRASH |
|
NSMPROC_NOTIFY |
|
Definition at line 27 of file mon.c.
nsm_get_handle - Find or create a cached nsm_handle : pointer to socket address of handle to find : length of socket address : pointer to C string containing hostname to find : length of C string
Behavior is modulated by the global nsm_use_hostnames variable.
Returns a cached nsm_handle after bumping its ref count, or returns a fresh nsm_handle if a handle that matches and/or cannot be found in the handle cache. Returns NULL if an error occurs.
Definition at line 360 of file mon.c.
nsm_monitor - Notify a peer in case we reboot : pointer to nlm_host of peer to notify
If this peer is not already monitored, this function sends an upcall to the local rpc.statd to record the name/address of the peer to notify in case we reboot.
Returns zero if the peer is monitored by the local rpc.statd; otherwise a negative errno value is returned.
Definition at line 182 of file mon.c.
nsm_reboot_lookup - match NLMPROC_SM_NOTIFY arguments to an nsm_handle : pointer to NLMPROC_SM_NOTIFY arguments
Returns a matching nsm_handle if found in the nsm cache. The returned nsm_handle's reference count is bumped. Otherwise returns NULL if some error occurred.
Definition at line 418 of file mon.c.
nsm_release - Release an NSM handle : pointer to handle to be released
Definition at line 446 of file mon.c.
nsm_unmonitor - Unregister peer notification : pointer to nlm_host of peer to stop monitoring
If this peer is monitored, this function sends an upcall to tell the local rpc.statd not to send this peer a notification when we reboot.
Definition at line 232 of file mon.c.
Definition at line 59 of file mon.c.
Definition at line 60 of file mon.c.