diff options
Diffstat (limited to 'net/decnet/sysctl_net_decnet.c')
-rw-r--r-- | net/decnet/sysctl_net_decnet.c | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/net/decnet/sysctl_net_decnet.c b/net/decnet/sysctl_net_decnet.c index a4065eb1341e..a6c067b593ab 100644 --- a/net/decnet/sysctl_net_decnet.c +++ b/net/decnet/sysctl_net_decnet.c | |||
@@ -164,7 +164,7 @@ static int dn_node_address_strategy(ctl_table *table, int __user *name, int nlen | |||
164 | return 0; | 164 | return 0; |
165 | } | 165 | } |
166 | 166 | ||
167 | static int dn_node_address_handler(ctl_table *table, int write, | 167 | static int dn_node_address_handler(ctl_table *table, int write, |
168 | struct file *filp, | 168 | struct file *filp, |
169 | void __user *buffer, | 169 | void __user *buffer, |
170 | size_t *lenp, loff_t *ppos) | 170 | size_t *lenp, loff_t *ppos) |
@@ -240,7 +240,7 @@ static int dn_def_dev_strategy(ctl_table *table, int __user *name, int nlen, | |||
240 | } | 240 | } |
241 | 241 | ||
242 | namel = strlen(devname) + 1; | 242 | namel = strlen(devname) + 1; |
243 | if (len > namel) len = namel; | 243 | if (len > namel) len = namel; |
244 | 244 | ||
245 | if (copy_to_user(oldval, devname, len)) | 245 | if (copy_to_user(oldval, devname, len)) |
246 | return -EFAULT; | 246 | return -EFAULT; |
@@ -275,7 +275,7 @@ static int dn_def_dev_strategy(ctl_table *table, int __user *name, int nlen, | |||
275 | } | 275 | } |
276 | 276 | ||
277 | 277 | ||
278 | static int dn_def_dev_handler(ctl_table *table, int write, | 278 | static int dn_def_dev_handler(ctl_table *table, int write, |
279 | struct file * filp, | 279 | struct file * filp, |
280 | void __user *buffer, | 280 | void __user *buffer, |
281 | size_t *lenp, loff_t *ppos) | 281 | size_t *lenp, loff_t *ppos) |
@@ -341,17 +341,17 @@ static int dn_def_dev_handler(ctl_table *table, int write, | |||
341 | 341 | ||
342 | static ctl_table dn_table[] = { | 342 | static ctl_table dn_table[] = { |
343 | { | 343 | { |
344 | .ctl_name = NET_DECNET_NODE_ADDRESS, | 344 | .ctl_name = NET_DECNET_NODE_ADDRESS, |
345 | .procname = "node_address", | 345 | .procname = "node_address", |
346 | .maxlen = 7, | 346 | .maxlen = 7, |
347 | .mode = 0644, | 347 | .mode = 0644, |
348 | .proc_handler = dn_node_address_handler, | 348 | .proc_handler = dn_node_address_handler, |
349 | .strategy = dn_node_address_strategy, | 349 | .strategy = dn_node_address_strategy, |
350 | }, | 350 | }, |
351 | { | 351 | { |
352 | .ctl_name = NET_DECNET_NODE_NAME, | 352 | .ctl_name = NET_DECNET_NODE_NAME, |
353 | .procname = "node_name", | 353 | .procname = "node_name", |
354 | .data = node_name, | 354 | .data = node_name, |
355 | .maxlen = 7, | 355 | .maxlen = 7, |
356 | .mode = 0644, | 356 | .mode = 0644, |
357 | .proc_handler = &proc_dostring, | 357 | .proc_handler = &proc_dostring, |
@@ -359,8 +359,8 @@ static ctl_table dn_table[] = { | |||
359 | }, | 359 | }, |
360 | { | 360 | { |
361 | .ctl_name = NET_DECNET_DEFAULT_DEVICE, | 361 | .ctl_name = NET_DECNET_DEFAULT_DEVICE, |
362 | .procname = "default_device", | 362 | .procname = "default_device", |
363 | .maxlen = 16, | 363 | .maxlen = 16, |
364 | .mode = 0644, | 364 | .mode = 0644, |
365 | .proc_handler = dn_def_dev_handler, | 365 | .proc_handler = dn_def_dev_handler, |
366 | .strategy = dn_def_dev_strategy, | 366 | .strategy = dn_def_dev_strategy, |
@@ -432,32 +432,32 @@ static ctl_table dn_table[] = { | |||
432 | .extra2 = &max_decnet_no_fc_max_cwnd | 432 | .extra2 = &max_decnet_no_fc_max_cwnd |
433 | }, | 433 | }, |
434 | { | 434 | { |
435 | .ctl_name = NET_DECNET_MEM, | 435 | .ctl_name = NET_DECNET_MEM, |
436 | .procname = "decnet_mem", | 436 | .procname = "decnet_mem", |
437 | .data = &sysctl_decnet_mem, | 437 | .data = &sysctl_decnet_mem, |
438 | .maxlen = sizeof(sysctl_decnet_mem), | 438 | .maxlen = sizeof(sysctl_decnet_mem), |
439 | .mode = 0644, | 439 | .mode = 0644, |
440 | .proc_handler = &proc_dointvec, | 440 | .proc_handler = &proc_dointvec, |
441 | .strategy = &sysctl_intvec, | 441 | .strategy = &sysctl_intvec, |
442 | }, | 442 | }, |
443 | { | 443 | { |
444 | .ctl_name = NET_DECNET_RMEM, | 444 | .ctl_name = NET_DECNET_RMEM, |
445 | .procname = "decnet_rmem", | 445 | .procname = "decnet_rmem", |
446 | .data = &sysctl_decnet_rmem, | 446 | .data = &sysctl_decnet_rmem, |
447 | .maxlen = sizeof(sysctl_decnet_rmem), | 447 | .maxlen = sizeof(sysctl_decnet_rmem), |
448 | .mode = 0644, | 448 | .mode = 0644, |
449 | .proc_handler = &proc_dointvec, | 449 | .proc_handler = &proc_dointvec, |
450 | .strategy = &sysctl_intvec, | 450 | .strategy = &sysctl_intvec, |
451 | }, | 451 | }, |
452 | { | 452 | { |
453 | .ctl_name = NET_DECNET_WMEM, | 453 | .ctl_name = NET_DECNET_WMEM, |
454 | .procname = "decnet_wmem", | 454 | .procname = "decnet_wmem", |
455 | .data = &sysctl_decnet_wmem, | 455 | .data = &sysctl_decnet_wmem, |
456 | .maxlen = sizeof(sysctl_decnet_wmem), | 456 | .maxlen = sizeof(sysctl_decnet_wmem), |
457 | .mode = 0644, | 457 | .mode = 0644, |
458 | .proc_handler = &proc_dointvec, | 458 | .proc_handler = &proc_dointvec, |
459 | .strategy = &sysctl_intvec, | 459 | .strategy = &sysctl_intvec, |
460 | }, | 460 | }, |
461 | { | 461 | { |
462 | .ctl_name = NET_DECNET_DEBUG_LEVEL, | 462 | .ctl_name = NET_DECNET_DEBUG_LEVEL, |
463 | .procname = "debug", | 463 | .procname = "debug", |
@@ -472,18 +472,18 @@ static ctl_table dn_table[] = { | |||
472 | 472 | ||
473 | static ctl_table dn_dir_table[] = { | 473 | static ctl_table dn_dir_table[] = { |
474 | { | 474 | { |
475 | .ctl_name = NET_DECNET, | 475 | .ctl_name = NET_DECNET, |
476 | .procname = "decnet", | 476 | .procname = "decnet", |
477 | .mode = 0555, | 477 | .mode = 0555, |
478 | .child = dn_table}, | 478 | .child = dn_table}, |
479 | {0} | 479 | {0} |
480 | }; | 480 | }; |
481 | 481 | ||
482 | static ctl_table dn_root_table[] = { | 482 | static ctl_table dn_root_table[] = { |
483 | { | 483 | { |
484 | .ctl_name = CTL_NET, | 484 | .ctl_name = CTL_NET, |
485 | .procname = "net", | 485 | .procname = "net", |
486 | .mode = 0555, | 486 | .mode = 0555, |
487 | .child = dn_dir_table | 487 | .child = dn_dir_table |
488 | }, | 488 | }, |
489 | {0} | 489 | {0} |