File: autoconf-relay-umode_t.c

package info (click to toggle)
systemtap 5.1-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 47,964 kB
  • sloc: cpp: 80,838; ansic: 54,757; xml: 49,725; exp: 43,665; sh: 11,527; python: 5,003; perl: 2,252; tcl: 1,312; makefile: 1,006; javascript: 149; lisp: 105; awk: 101; asm: 91; java: 70; sed: 16
file content (35 lines) | stat: -rw-r--r-- 748 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include <linux/relay.h>

/* commit 4e6b225dab95a4d43b3e7bdc7e79cbca4c145596
 * Author: Al Viro <viro@zeniv.linux.org.uk>
 * Date:   Sun Jul 24 04:33:43 2011 -0400
 *
 *     switch debugfs to umode_t
 */


static struct dentry *
umode_t_callback(const char *filename,
                 struct dentry *parent,
                 umode_t mode, /* as opposed to mode_t=__kernel_mode_t */
                 struct rchan_buf *buf,
                 int *is_global)
{
  (void) filename;
  (void) parent;
  (void) mode;
  (void) buf;
  (void) is_global;
  return NULL;
}

static struct rchan_callbacks __stp_relay_callbacks = {
   .create_buf_file = umode_t_callback,
};

void foo (void);

void foo (void) {
   (void) __stp_relay_callbacks.create_buf_file;
}