Searched refs:table (Results 1 - 25 of 124) sorted by relevance

12345

/net/unix/
H A Dsysctl_net_unix.c31 struct ctl_table *table; local
33 table = kmemdup(unix_table, sizeof(unix_table), GFP_KERNEL);
34 if (table == NULL)
39 table[0].procname = NULL;
41 table[0].data = &net->unx.sysctl_max_dgram_qlen;
42 net->unx.ctl = register_net_sysctl(net, "net/unix", table);
49 kfree(table);
56 struct ctl_table *table; local
58 table = net->unx.ctl->ctl_table_arg;
60 kfree(table);
[all...]
/net/xfrm/
H A Dxfrm_sysctl.c45 struct ctl_table *table; local
49 table = kmemdup(xfrm_table, sizeof(xfrm_table), GFP_KERNEL);
50 if (!table)
52 table[0].data = &net->xfrm.sysctl_aevent_etime;
53 table[1].data = &net->xfrm.sysctl_aevent_rseqth;
54 table[2].data = &net->xfrm.sysctl_larval_drop;
55 table[3].data = &net->xfrm.sysctl_acq_expires;
59 table[0].procname = NULL;
61 net->xfrm.sysctl_hdr = register_net_sysctl(net, "net/core", table);
67 kfree(table);
74 struct ctl_table *table; local
[all...]
/net/netfilter/
H A Dnf_conntrack_timestamp.c45 struct ctl_table *table; local
47 table = kmemdup(tstamp_sysctl_table, sizeof(tstamp_sysctl_table),
49 if (!table)
52 table[0].data = &net->ct.sysctl_tstamp;
56 table[0].procname = NULL;
59 table);
67 kfree(table);
74 struct ctl_table *table; local
76 table = net->ct.tstamp_sysctl_header->ctl_table_arg;
78 kfree(table);
[all...]
H A Dnf_conntrack_acct.c63 struct ctl_table *table; local
65 table = kmemdup(acct_sysctl_table, sizeof(acct_sysctl_table),
67 if (!table)
70 table[0].data = &net->ct.sysctl_acct;
74 table[0].procname = NULL;
77 table);
85 kfree(table);
92 struct ctl_table *table; local
94 table = net->ct.acct_sysctl_header->ctl_table_arg;
96 kfree(table);
[all...]
H A Dnf_conntrack_ecache.c191 struct ctl_table *table; local
193 table = kmemdup(event_sysctl_table, sizeof(event_sysctl_table),
195 if (!table)
198 table[0].data = &net->ct.sysctl_events;
199 table[1].data = &net->ct.sysctl_events_retry_timeout;
203 table[0].procname = NULL;
206 register_net_sysctl(net, "net/netfilter", table);
214 kfree(table);
221 struct ctl_table *table; local
223 table
[all...]
H A Dnfnetlink.c41 } table[NFNL_SUBSYS_COUNT]; variable in typeref:struct:__anon96
54 mutex_lock(&table[subsys_id].mutex);
60 mutex_unlock(&table[subsys_id].mutex);
67 if (table[n->subsys_id].subsys) {
71 rcu_assign_pointer(table[n->subsys_id].subsys, n);
81 table[n->subsys_id].subsys = NULL;
95 return rcu_dereference(table[subsys_id].subsys);
203 if (rcu_dereference_protected(table[subsys_id].subsys,
204 lockdep_is_held(&table[subsys_id].mutex)) != ss ||
282 mutex_init(&table[
[all...]
H A Dx_tables.c401 if (par->match->table != NULL &&
402 strcmp(par->match->table, par->table) != 0) {
403 pr_err("%s_tables: %s match: only valid in %s table, not %s\n",
405 par->match->table, par->table);
576 if (par->target->table != NULL &&
577 strcmp(par->target->table, par->table) != 0) {
578 pr_err("%s_tables: %s target: only valid in %s table, no
759 xt_table_unlock(struct xt_table *table) argument
821 xt_replace_table(struct xt_table *table, unsigned int num_counters, struct xt_table_info *newinfo, int *error) argument
885 struct xt_table *t, *table; local
931 xt_unregister_table(struct xt_table *table) argument
979 struct xt_table *table = list_entry(v, struct xt_table, list); local
1241 xt_hook_link(const struct xt_table *table, nf_hookfn *fn) argument
1280 xt_hook_unlink(const struct xt_table *table, struct nf_hook_ops *ops) argument
[all...]
H A Dxt_CONNSECMARK.c92 if (strcmp(par->table, "mangle") != 0 &&
93 strcmp(par->table, "security") != 0) {
95 "or \'security\' tables, not \'%s\'.\n", par->table);
H A Dxt_TRACE.c24 .table = "raw",
H A Dnf_log.c248 static int nf_log_proc_dostring(ctl_table *table, int write, argument
255 int tindex = (unsigned long)table->extra1;
281 table->data = "NONE";
283 table->data = logger->name;
284 r = proc_dostring(table, write, buffer, lenp, ppos);
294 struct ctl_table *table; local
296 table = nf_log_sysctl_table;
298 table = kmemdup(nf_log_sysctl_table,
301 if (!table)
322 table);
337 struct ctl_table *table; local
[all...]
H A Dnf_conntrack_standalone.c474 struct ctl_table *table; local
476 table = kmemdup(nf_ct_sysctl_table, sizeof(nf_ct_sysctl_table),
478 if (!table)
481 table[1].data = &net->ct.count;
482 table[2].data = &net->ct.htable_size;
483 table[3].data = &net->ct.sysctl_checksum;
484 table[4].data = &net->ct.sysctl_log_invalid;
488 table[0].procname = NULL;
490 net->ct.sysctl_header = register_net_sysctl(net, "net/netfilter", table);
497 kfree(table);
504 struct ctl_table *table; local
[all...]
/net/sched/
H A Dsch_gred.c62 static inline int gred_wred_mode(struct gred_sched *table) argument
64 return test_bit(GRED_WRED_MODE, &table->flags);
67 static inline void gred_enable_wred_mode(struct gred_sched *table) argument
69 __set_bit(GRED_WRED_MODE, &table->flags);
72 static inline void gred_disable_wred_mode(struct gred_sched *table) argument
74 __clear_bit(GRED_WRED_MODE, &table->flags);
77 static inline int gred_rio_mode(struct gred_sched *table) argument
79 return test_bit(GRED_RIO_MODE, &table->flags);
82 static inline void gred_enable_rio_mode(struct gred_sched *table) argument
84 __set_bit(GRED_RIO_MODE, &table
87 gred_disable_rio_mode(struct gred_sched *table) argument
94 struct gred_sched *table = qdisc_priv(sch); local
113 gred_backlog(struct gred_sched *table, struct gred_sched_data *q, struct Qdisc *sch) argument
128 gred_load_wred_set(const struct gred_sched *table, struct gred_sched_data *q) argument
135 gred_store_wred_set(struct gred_sched *table, struct gred_sched_data *q) argument
337 struct gred_sched *table = qdisc_priv(sch); local
388 struct gred_sched *table = qdisc_priv(sch); local
421 struct gred_sched *table = qdisc_priv(sch); local
509 struct gred_sched *table = qdisc_priv(sch); local
593 struct gred_sched *table = qdisc_priv(sch); local
[all...]
/net/batman-adv/
H A Dhash.c29 INIT_HLIST_HEAD(&hash->table[i]);
38 kfree(hash->table);
51 hash->table = kmalloc(sizeof(*hash->table) * size, GFP_ATOMIC);
52 if (!hash->table)
65 kfree(hash->table);
H A Dhash.h39 struct hlist_head *table; /* the hashtable itself with the buckets */ member in struct:batadv_hashtable
68 head = &hash->table[i];
108 * @hash: storage hash table
133 head = &hash->table[index];
173 head = &hash->table[index];
/net/openvswitch/
H A Dflow.h159 static inline int ovs_flow_tbl_count(struct flow_table *table) argument
161 return table->count;
164 static inline int ovs_flow_tbl_need_to_expand(struct flow_table *table) argument
166 return (table->count > table->n_buckets);
169 struct sw_flow *ovs_flow_tbl_lookup(struct flow_table *table,
171 void ovs_flow_tbl_destroy(struct flow_table *table);
172 void ovs_flow_tbl_deferred_destroy(struct flow_table *table);
174 struct flow_table *ovs_flow_tbl_expand(struct flow_table *table);
175 struct flow_table *ovs_flow_tbl_rehash(struct flow_table *table);
[all...]
H A Dflow.c232 static struct hlist_head *find_bucket(struct flow_table *table, u32 hash) argument
234 hash = jhash_1word(hash, table->hash_seed);
235 return flex_array_get(table->buckets,
236 (hash & (table->n_buckets - 1)));
269 struct flow_table *table = kmalloc(sizeof(*table), GFP_KERNEL); local
271 if (!table)
274 table->buckets = alloc_buckets(new_size);
276 if (!table->buckets) {
277 kfree(table);
289 ovs_flow_tbl_destroy(struct flow_table *table) argument
318 struct flow_table *table = container_of(rcu, struct flow_table, rcu); local
323 ovs_flow_tbl_deferred_destroy(struct flow_table *table) argument
331 ovs_flow_tbl_next(struct flow_table *table, u32 *bucket, u32 *last) argument
378 __flow_tbl_rehash(struct flow_table *table, int n_buckets) argument
391 ovs_flow_tbl_rehash(struct flow_table *table) argument
396 ovs_flow_tbl_expand(struct flow_table *table) argument
767 ovs_flow_tbl_lookup(struct flow_table *table, struct sw_flow_key *key, int key_len) argument
787 ovs_flow_tbl_insert(struct flow_table *table, struct sw_flow *flow) argument
796 ovs_flow_tbl_remove(struct flow_table *table, struct sw_flow *flow) argument
[all...]
/net/
H A Dsysctl_net.c40 /* Return standard mode bits for table entry. */
42 struct ctl_table *table)
51 int mode = (table->mode >> 6) & 7;
56 int mode = (table->mode >> 3) & 7;
59 return table->mode;
104 const char *path, struct ctl_table *table)
106 return __register_sysctl_table(&net->sysctls, path, table);
41 net_ctl_permissions(struct ctl_table_header *head, struct ctl_table *table) argument
103 register_net_sysctl(struct net *net, const char *path, struct ctl_table *table) argument
/net/wimax/
H A DMakefile5 id-table.o \
/net/ax25/
H A Dsysctl_net_ax25.c155 struct ctl_table *table; local
157 table = kmemdup(ax25_param_table, sizeof(ax25_param_table), GFP_KERNEL);
158 if (!table)
162 table[k].data = &ax25_dev->values[k];
165 ax25_dev->sysheader = register_net_sysctl(&init_net, path, table);
167 kfree(table);
176 struct ctl_table *table; local
180 table = header->ctl_table_arg;
182 kfree(table);
/net/sctp/
H A Dsysctl.c353 struct ctl_table *table; local
356 table = kmemdup(sctp_net_table, sizeof(sctp_net_table), GFP_KERNEL);
357 if (!table)
360 for (i = 0; table[i].data; i++)
361 table[i].data += (char *)(&net->sctp) - (char *)&init_net.sctp;
363 net->sctp.sysctl_header = register_net_sysctl(net, "net/sctp", table);
369 struct ctl_table *table; local
371 table = net->sctp.sysctl_header->ctl_table_arg;
373 kfree(table);
/net/ipv4/
H A Dxfrm4_policy.c267 struct ctl_table *table; local
270 table = xfrm4_policy_table;
272 table = kmemdup(table, sizeof(xfrm4_policy_table), GFP_KERNEL);
273 if (!table)
276 table[0].data = &net->xfrm.xfrm4_dst_ops.gc_thresh;
279 hdr = register_net_sysctl(net, "net/ipv4", table);
288 kfree(table);
295 struct ctl_table *table; local
300 table
[all...]
/net/bridge/netfilter/
H A Debt_dnat.c38 if ((strcmp(par->table, "nat") != 0 ||
41 (strcmp(par->table, "broute") != 0 ||
H A Debt_redirect.c45 if ((strcmp(par->table, "nat") != 0 ||
47 (strcmp(par->table, "broute") != 0 ||
/net/phonet/
H A Dsysctl.c64 static int proc_local_port_range(ctl_table *table, int write, argument
73 .mode = table->mode,
/net/sunrpc/
H A Dsysctl.c6 * I would prefer to register the sunrpc table below sys/net, but that's
61 static int proc_do_xprt(ctl_table *table, int write, argument
76 proc_dodebug(ctl_table *table, int write, argument
112 *(unsigned int *) table->data = value;
114 if (strcmp(table->procname, "rpc_debug") == 0)
119 len = sprintf(tmpbuf, "%d", *(unsigned int *) table->data);

Completed in 242 milliseconds

12345