aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/bat_debugfs.c
diff options
context:
space:
mode:
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>2012-01-22 14:00:21 -0500
committerAntonio Quartulli <ordex@autistici.org>2012-04-11 08:28:59 -0400
commit9bf8e4d4254397684250eae29a0dc12d54a00251 (patch)
tree0f34ba75d59ed93e48b5c8ac03191c614d9b5be9 /net/batman-adv/bat_debugfs.c
parentc867305509e9bb748d9349c84cc26beaa95ccd73 (diff)
batman-adv: export claim tables through debugfs
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/bat_debugfs.c')
-rw-r--r--net/batman-adv/bat_debugfs.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/batman-adv/bat_debugfs.c b/net/batman-adv/bat_debugfs.c
index 165ff62a2bed..0e3517773a8b 100644
--- a/net/batman-adv/bat_debugfs.c
+++ b/net/batman-adv/bat_debugfs.c
@@ -32,6 +32,7 @@
32#include "soft-interface.h" 32#include "soft-interface.h"
33#include "vis.h" 33#include "vis.h"
34#include "icmp_socket.h" 34#include "icmp_socket.h"
35#include "bridge_loop_avoidance.h"
35 36
36static struct dentry *bat_debugfs; 37static struct dentry *bat_debugfs;
37 38
@@ -244,6 +245,13 @@ static int transtable_global_open(struct inode *inode, struct file *file)
244 return single_open(file, tt_global_seq_print_text, net_dev); 245 return single_open(file, tt_global_seq_print_text, net_dev);
245} 246}
246 247
248static int bla_claim_table_open(struct inode *inode, struct file *file)
249{
250 struct net_device *net_dev = (struct net_device *)inode->i_private;
251 return single_open(file, bla_claim_table_seq_print_text, net_dev);
252}
253
254
247static int transtable_local_open(struct inode *inode, struct file *file) 255static int transtable_local_open(struct inode *inode, struct file *file)
248{ 256{
249 struct net_device *net_dev = (struct net_device *)inode->i_private; 257 struct net_device *net_dev = (struct net_device *)inode->i_private;
@@ -277,6 +285,7 @@ static BAT_DEBUGINFO(routing_algos, S_IRUGO, bat_algorithms_open);
277static BAT_DEBUGINFO(originators, S_IRUGO, originators_open); 285static BAT_DEBUGINFO(originators, S_IRUGO, originators_open);
278static BAT_DEBUGINFO(gateways, S_IRUGO, gateways_open); 286static BAT_DEBUGINFO(gateways, S_IRUGO, gateways_open);
279static BAT_DEBUGINFO(transtable_global, S_IRUGO, transtable_global_open); 287static BAT_DEBUGINFO(transtable_global, S_IRUGO, transtable_global_open);
288static BAT_DEBUGINFO(bla_claim_table, S_IRUGO, bla_claim_table_open);
280static BAT_DEBUGINFO(transtable_local, S_IRUGO, transtable_local_open); 289static BAT_DEBUGINFO(transtable_local, S_IRUGO, transtable_local_open);
281static BAT_DEBUGINFO(vis_data, S_IRUGO, vis_data_open); 290static BAT_DEBUGINFO(vis_data, S_IRUGO, vis_data_open);
282 291
@@ -284,6 +293,7 @@ static struct bat_debuginfo *mesh_debuginfos[] = {
284 &bat_debuginfo_originators, 293 &bat_debuginfo_originators,
285 &bat_debuginfo_gateways, 294 &bat_debuginfo_gateways,
286 &bat_debuginfo_transtable_global, 295 &bat_debuginfo_transtable_global,
296 &bat_debuginfo_bla_claim_table,
287 &bat_debuginfo_transtable_local, 297 &bat_debuginfo_transtable_local,
288 &bat_debuginfo_vis_data, 298 &bat_debuginfo_vis_data,
289 NULL, 299 NULL,