Re: [PATCH] debugfs: add helper function to create device related seq_file

From: Greg Kroah-Hartman
Date: Sat Oct 11 2014 - 16:18:28 EST


On Sat, Oct 11, 2014 at 06:01:55PM +0200, Arend van Spriel wrote:
> This patch adds a helper function that simplifies adding a
> 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 seq_printf() calls.
>
> Signed-off-by: Arend van Spriel <arend@xxxxxxxxxxxx>
> ---
> fs/debugfs/file.c | 54 +++++++++++++++++++++++++++++++++++++++++++++++++
> include/linux/debugfs.h | 16 ++++++++++++++-
> 2 files changed, 69 insertions(+), 1 deletion(-)

Do you have some kernel code pending that needs this change? Or can
existing users be moved to it, saving them code?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/