diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2019-10-21 17:06:45 +0200 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2019-10-24 20:04:31 +0200 |
commit | 98919f4c9a3421695b182f0244b34b62045d08ff (patch) | |
tree | 60a49f405bf137a6a6c3684b1117c022dfe50424 /Documentation | |
parent | docs: driver-api: Remove reference to sgi-ioc4 (diff) | |
download | linux-98919f4c9a3421695b182f0244b34b62045d08ff.tar.xz linux-98919f4c9a3421695b182f0244b34b62045d08ff.zip |
Documentation: debugfs: Document debugfs helper for unsigned long values
When debugfs_create_ulong() was added, it was not documented.
Fixes: c23fe83138ed7b11 ("debugfs: Add debugfs_create_ulong()")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/filesystems/debugfs.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Documentation/filesystems/debugfs.txt b/Documentation/filesystems/debugfs.txt index 9e27c843d00e..2ca99152cb6e 100644 --- a/Documentation/filesystems/debugfs.txt +++ b/Documentation/filesystems/debugfs.txt @@ -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 value to be exported. Some types can have different widths on different -architectures, though, complicating the situation somewhat. There is a -function meant to help out in one special case: +architectures, though, complicating the situation somewhat. There are +functions meant to help out in such special cases: struct dentry *debugfs_create_size_t(const char *name, umode_t mode, struct dentry *parent, @@ -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 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: struct dentry *debugfs_create_bool(const char *name, umode_t mode, |