[PATCH] allow callers of seq_open do allocation themselves
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 7 Nov 2005 22:15:34 +0000 (17:15 -0500)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 8 Nov 2005 02:18:09 +0000 (18:18 -0800)
commit1abe77b0fc4b485927f1f798ae81a752677e1d05
treef7a2de3728fa475975144310e67b643c446e5a6f
parentccd48bc7fac284caf704dcdcafd223a24f70bccf
[PATCH] allow callers of seq_open do allocation themselves

Allow caller of seq_open() to kmalloc() seq_file + whatever else they
want and set ->private_data to it.  seq_open() will then abstain from
doing allocation itself.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/seq_file.c