/* * linux/fs/nfs/nfs4sysctl.c * * Sysctl interface to NFS v4 parameters * * Copyright (c) 2006 Trond Myklebust */ #include #include #include "nfs4_fs.h" #include "nfs4idmap.h" #include "callback.h" static const int nfs_set_port_min; static const int nfs_set_port_max = 65535; static struct ctl_table_header *nfs4_callback_sysctl_table; static struct ctl_table nfs4_cb_sysctls[] = { { .procname = "nfs_callback_tcpport", .data = &nfs_callback_set_tcpport, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec_minmax, .extra1 = (int *)&nfs_set_port_min, .extra2 = (int *)&nfs_set_port_max, }, { .procname = "idmap_cache_timeout", .data = &nfs_idmap_cache_timeout, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec_jiffies, }, { } }; static struct ctl_table nfs4_cb_sysctl_dir[] = { { .procname = "nfs", .mode = 0555, .child = nfs4_cb_sysctls, }, { } }; static struct ctl_table nfs4_cb_sysctl_root[] = { { .procname = "fs", .mode = 0555, .child = nfs4_cb_sysctl_dir, }, { } }; int nfs4_register_sysctl(void) { nfs4_callback_sysctl_table = register_sysctl_table(nfs4_cb_sysctl_root); if (nfs4_callback_sysctl_table == NULL) return -ENOMEM; return 0; } void nfs4_unregister_sysctl(void) { unregister_sysctl_table(nfs4_callback_sysctl_table); nfs4_callback_sysctl_table = NULL; } class='tabs'> summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2017-02-01Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds4-2/+37
2017-02-01Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert...Linus Torvalds name='context' onchange='this.form.submit();'>
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2017-02-11 02:31:11 -0500
committerDavid S. Miller <davem@davemloft.net>2017-02-11 02:31:11 -0500
commit35eeacf1820a08305c2b0960febfa190f5a6dd63 (patch)
treef1227c7384ee01d3f029cc5f82223234e6456c5f /net/smc/smc_tx.c
parentbed45f79a2afc9d7c279b880dfcac8f27d513b50 (diff)
parent1ee18329fae936089c6c599250ae92482ff2b81f (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Diffstat (limited to 'net/smc/smc_tx.c')