]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit936fb0e6105d1601ee7687b7d46a04ef4c4e7447
treef7a2de3728fa475975144310e67b643c446e5a6f
parent450bffb4a3ce9ccff79055514bc04729a1ac5d1d
[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