Files
kernel_amazon_mt8127-common/include/linux
Al Viro 2043f495c7 new helper: single_open_size()
Same as single_open(), but preallocates the buffer of given size.
Doesn't make any sense for sizes up to PAGE_SIZE and doesn't make
sense if output of show() exceeds PAGE_SIZE only rarely - seq_read()
will take care of growing the buffer and redoing show().  If you
_know_ that it will be large, it might make more sense to look into
saner iterator, rather than go with single-shot one.  If that's
impossible, single_open_size() might be for you.

Again, don't use that without a good reason; occasionally that's really
the best way to go, but very often there are better solutions.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-04-09 14:13:29 -04:00
..
2013-03-01 13:39:00 -08:00
2013-02-25 09:24:55 -05:00
2013-02-26 02:46:08 -05:00
2013-02-22 23:31:31 -05:00
2013-02-06 15:59:47 -05:00
2013-01-29 19:32:58 -08:00
2013-03-22 16:41:20 -07:00
2013-04-09 14:09:17 -04:00
2013-04-09 14:13:29 -04:00
2013-02-19 08:43:34 +01:00
2013-02-03 15:09:26 -05:00
2013-02-10 19:41:08 -05:00
2013-02-14 09:21:15 -05:00
2013-03-20 12:10:38 -04:00
2013-02-08 18:28:04 +01:00