Debian Codegraph @

runtime/linux/autoconf-relay-umode_t.c

raw
1 #include <linux/relay.h>
2
3 /* commit 4e6b225dab95a4d43b3e7bdc7e79cbca4c145596
4 * Author: Al Viro <[email protected]>
5 * Date: Sun Jul 24 04:33:43 2011 -0400
6 *
7 * switch debugfs to umode_t
8 */
9
10
11 static struct dentry *
12 umode_t_callback(const char *filename,
13 struct dentry *parent,
14 umode_t mode, /* as opposed to mode_t=__kernel_mode_t */
15 struct rchan_buf *buf,
16 int *is_global)
17 {
18 (void) filename;
19 (void) parent;
20 (void) mode;
21 (void) buf;
22 (void) is_global;
23 return NULL;
24 }
25
26 static struct rchan_callbacks __stp_relay_callbacks = {
27 .create_buf_file = umode_t_callback,
28 };
29
30 void foo (void);
31
32 void foo (void) {
33 (void) __stp_relay_callbacks.create_buf_file;
34 }
35