summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSeth Jennings <sjenning@linux.vnet.ibm.com>2013-06-03 15:33:02 -0500
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:43:58 +0900
commited105229e8a76221fd929593f500b480415a2075 (patch)
tree2b04abeb5260aed9913db40f3566117bd69c2fd5 /include
parent1560978468a58af48ecb6f14b3bfb7a30c6648ef (diff)
downloadlinux-3.10-ed105229e8a76221fd929593f500b480415a2075.tar.gz
linux-3.10-ed105229e8a76221fd929593f500b480415a2075.tar.bz2
linux-3.10-ed105229e8a76221fd929593f500b480415a2075.zip
debugfs: add get/set for atomic types
debugfs currently lack the ability to create attributes that set/get atomic_t values. This patch adds support for this through a new debugfs_create_atomic_t() function. Signed-off-by: Seth Jennings <sjenning@linux.vnet.ibm.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Mel Gorman <mgorman@suse.de> Acked-by: Rik van Riel <riel@redhat.com> Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/debugfs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h
index 63f2465807d..d68b4ea7343 100644
--- a/include/linux/debugfs.h
+++ b/include/linux/debugfs.h
@@ -79,6 +79,8 @@ struct dentry *debugfs_create_x64(const char *name, umode_t mode,
struct dentry *parent, u64 *value);
struct dentry *debugfs_create_size_t(const char *name, umode_t mode,
struct dentry *parent, size_t *value);
+struct dentry *debugfs_create_atomic_t(const char *name, umode_t mode,
+ struct dentry *parent, atomic_t *value);
struct dentry *debugfs_create_bool(const char *name, umode_t mode,
struct dentry *parent, u32 *value);