mon.c (ea51e5040e24eefe44d70bc654a237ca1f0225b0) mon.c (a613fa168afc19179a7547fbba45644c5b6912bf)
1/*
2 * linux/fs/lockd/mon.c
3 *
4 * The kernel statd client.
5 *
6 * Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de>
7 */
8

--- 33 unchanged lines hidden (view full) ---

42 char *mon_name;
43};
44
45struct nsm_res {
46 u32 status;
47 u32 state;
48};
49
1/*
2 * linux/fs/lockd/mon.c
3 *
4 * The kernel statd client.
5 *
6 * Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de>
7 */
8

--- 33 unchanged lines hidden (view full) ---

42 char *mon_name;
43};
44
45struct nsm_res {
46 u32 status;
47 u32 state;
48};
49
50static struct rpc_program nsm_program;
50static const struct rpc_program nsm_program;
51static LIST_HEAD(nsm_handles);
52static DEFINE_SPINLOCK(nsm_lock);
53
54/*
55 * Local NSM state
56 */
57u32 __read_mostly nsm_local_state;
58bool __read_mostly nsm_use_hostnames;

--- 470 unchanged lines hidden (view full) ---

529 .p_decode = (kxdrdproc_t)nsm_xdr_dec_stat,
530 .p_arglen = SM_mon_id_sz,
531 .p_replen = SM_unmonres_sz,
532 .p_statidx = NSMPROC_UNMON,
533 .p_name = "UNMONITOR",
534 },
535};
536
51static LIST_HEAD(nsm_handles);
52static DEFINE_SPINLOCK(nsm_lock);
53
54/*
55 * Local NSM state
56 */
57u32 __read_mostly nsm_local_state;
58bool __read_mostly nsm_use_hostnames;

--- 470 unchanged lines hidden (view full) ---

529 .p_decode = (kxdrdproc_t)nsm_xdr_dec_stat,
530 .p_arglen = SM_mon_id_sz,
531 .p_replen = SM_unmonres_sz,
532 .p_statidx = NSMPROC_UNMON,
533 .p_name = "UNMONITOR",
534 },
535};
536
537static struct rpc_version nsm_version1 = {
537static const struct rpc_version nsm_version1 = {
538 .number = 1,
539 .nrprocs = ARRAY_SIZE(nsm_procedures),
540 .procs = nsm_procedures
541};
542
538 .number = 1,
539 .nrprocs = ARRAY_SIZE(nsm_procedures),
540 .procs = nsm_procedures
541};
542
543static struct rpc_version * nsm_version[] = {
543static const struct rpc_version *nsm_version[] = {
544 [1] = &nsm_version1,
545};
546
547static struct rpc_stat nsm_stats;
548
544 [1] = &nsm_version1,
545};
546
547static struct rpc_stat nsm_stats;
548
549static struct rpc_program nsm_program = {
549static const struct rpc_program nsm_program = {
550 .name = "statd",
551 .number = NSM_PROGRAM,
552 .nrvers = ARRAY_SIZE(nsm_version),
553 .version = nsm_version,
554 .stats = &nsm_stats
555};
550 .name = "statd",
551 .number = NSM_PROGRAM,
552 .nrvers = ARRAY_SIZE(nsm_version),
553 .version = nsm_version,
554 .stats = &nsm_stats
555};