linux_dsm_epyc7002/fs/debugfs
Arend van Spriel 98210b7f73 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>
2014-11-26 19:38:37 -08:00
..
file.c debugfs: add helper function to create device related seq_file 2014-11-26 19:38:37 -08:00
inode.c fs: debugfs: remove trailing whitespace 2014-07-09 16:58:21 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00