1DEBUGFS_CREATE_U32_A(9)     The debugfs filesystem     DEBUGFS_CREATE_U32_A(9)
2
3
4

NAME

6       debugfs_create_u32_array - create a debugfs file that is used to read
7       u32 array.
8

SYNOPSIS

10       struct dentry * debugfs_create_u32_array(const char * name,
11                                                umode_t mode,
12                                                struct dentry * parent,
13                                                u32 * array, u32 elements);
14

ARGUMENTS

16       name
17           a pointer to a string containing the name of the file to create.
18
19       mode
20           the permission that the file should have.
21
22       parent
23           a pointer to the parent dentry for this file. This should be a
24           directory dentry if set. If this parameter is NULL, then the file
25           will be created in the root of the debugfs filesystem.
26
27       array
28           u32 array that provides data.
29
30       elements
31           total number of elements in the array.
32

DESCRIPTION

34       This function creates a file in debugfs with the given name that
35       exports array as data. If the mode variable is so set it can be read
36       from. Writing is not supported. Seek within the file is also not
37       supported. Once array is created its size can not be changed.
38
39       The function returns a pointer to dentry on success. If debugfs is not
40       enabled in the kernel, the value -ENODEV will be returned.
41
43Kernel Hackers Manual 3.10         June 2019           DEBUGFS_CREATE_U32_A(9)
Impressum