Commit 98919f4c authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Jonathan Corbet

Documentation: debugfs: Document debugfs helper for unsigned long values

When debugfs_create_ulong() was added, it was not documented.

Fixes: c23fe831 ("debugfs: Add debugfs_create_ulong()")
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent dc5fcc51
...@@ -93,8 +93,8 @@ the following functions can be used instead: ...@@ -93,8 +93,8 @@ the following functions can be used instead:
These functions are useful as long as the developer knows the size of the These functions are useful as long as the developer knows the size of the
value to be exported. Some types can have different widths on different value to be exported. Some types can have different widths on different
architectures, though, complicating the situation somewhat. There is a architectures, though, complicating the situation somewhat. There are
function meant to help out in one special case: functions meant to help out in such special cases:
struct dentry *debugfs_create_size_t(const char *name, umode_t mode, struct dentry *debugfs_create_size_t(const char *name, umode_t mode,
struct dentry *parent, struct dentry *parent,
...@@ -103,6 +103,12 @@ function meant to help out in one special case: ...@@ -103,6 +103,12 @@ function meant to help out in one special case:
As might be expected, this function will create a debugfs file to represent As might be expected, this function will create a debugfs file to represent
a variable of type size_t. a variable of type size_t.
Similarly, there is a helper for variables of type unsigned long:
struct dentry *debugfs_create_ulong(const char *name, umode_t mode,
struct dentry *parent,
unsigned long *value);
Boolean values can be placed in debugfs with: Boolean values can be placed in debugfs with:
struct dentry *debugfs_create_bool(const char *name, umode_t mode, struct dentry *debugfs_create_bool(const char *name, umode_t mode,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment