• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <linux/kernel.h>
2 #include <linux/module.h>
3 #include <linux/debugfs.h>
4 
5 #include "drbd_int.h"
6 
7 #ifdef CONFIG_DEBUG_FS
8 int __init drbd_debugfs_init(void);
9 void drbd_debugfs_cleanup(void);
10 
11 void drbd_debugfs_resource_add(struct drbd_resource *resource);
12 void drbd_debugfs_resource_cleanup(struct drbd_resource *resource);
13 
14 void drbd_debugfs_connection_add(struct drbd_connection *connection);
15 void drbd_debugfs_connection_cleanup(struct drbd_connection *connection);
16 
17 void drbd_debugfs_device_add(struct drbd_device *device);
18 void drbd_debugfs_device_cleanup(struct drbd_device *device);
19 
20 void drbd_debugfs_peer_device_add(struct drbd_peer_device *peer_device);
21 void drbd_debugfs_peer_device_cleanup(struct drbd_peer_device *peer_device);
22 #else
23 
drbd_debugfs_init(void)24 static inline int __init drbd_debugfs_init(void) { return -ENODEV; }
drbd_debugfs_cleanup(void)25 static inline void drbd_debugfs_cleanup(void) { }
26 
drbd_debugfs_resource_add(struct drbd_resource * resource)27 static inline void drbd_debugfs_resource_add(struct drbd_resource *resource) { }
drbd_debugfs_resource_cleanup(struct drbd_resource * resource)28 static inline void drbd_debugfs_resource_cleanup(struct drbd_resource *resource) { }
29 
drbd_debugfs_connection_add(struct drbd_connection * connection)30 static inline void drbd_debugfs_connection_add(struct drbd_connection *connection) { }
drbd_debugfs_connection_cleanup(struct drbd_connection * connection)31 static inline void drbd_debugfs_connection_cleanup(struct drbd_connection *connection) { }
32 
drbd_debugfs_device_add(struct drbd_device * device)33 static inline void drbd_debugfs_device_add(struct drbd_device *device) { }
drbd_debugfs_device_cleanup(struct drbd_device * device)34 static inline void drbd_debugfs_device_cleanup(struct drbd_device *device) { }
35 
drbd_debugfs_peer_device_add(struct drbd_peer_device * peer_device)36 static inline void drbd_debugfs_peer_device_add(struct drbd_peer_device *peer_device) { }
drbd_debugfs_peer_device_cleanup(struct drbd_peer_device * peer_device)37 static inline void drbd_debugfs_peer_device_cleanup(struct drbd_peer_device *peer_device) { }
38 
39 #endif
40