summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorArend van Spriel <arend@broadcom.com>2014-11-09 11:31:58 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-27 04:38:37 +0100
commit98210b7f73f1db182bd9a558a031093cd166e907 (patch)
tree93b0c862e237d963e9ad9a8d2ff8e5b0e222b8fd /ipc
parentdrivers/base: cacheinfo: remove noisy error boot message (diff)
downloadlinux-98210b7f73f1db182bd9a558a031093cd166e907.tar.xz
linux-98210b7f73f1db182bd9a558a031093cd166e907.zip
debugfs: add helper function to create device related seq_file
This patch adds a helper function that simplifies adding a so-called single_open sequence file for device drivers. The calling device driver needs to provide a read function and a device pointer. The field struct seq_file::private will reference the device pointer upon call to the read function so the driver can obtain his data from it and do its task of providing the file content using seq_printf() calls and alike. Using this helper function also gets rid of the need to specify file operations per debugfs file. Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions