* Splice(): exports for module programmers
@ 2008-01-11 2:43 Chris Smowton
2008-01-11 9:06 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Chris Smowton @ 2008-01-11 2:43 UTC (permalink / raw)
To: linux-kernel
Just a couple of quick questions if anyone can shed light regarding
functions exported for modules relating to splice():
* Is there a particular reason why the useful helper __splice_from_pipe
is exported, but not the locking equivalent splice_from_pipe or its
equally useful helper splice_to_pipe?
* Similarly is there anything wrong with exporting the generic
pipe-buffer operations (e.g. generic_pipe_buf_map) to save effort
writing modules which implement splice_read and splice_write?
Are these unexported because they are unstable and not yet considered
suitable for use, or simply because nobody's written a module that
splice()s yet?
Chris
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Splice(): exports for module programmers
2008-01-11 2:43 Splice(): exports for module programmers Chris Smowton
@ 2008-01-11 9:06 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2008-01-11 9:06 UTC (permalink / raw)
To: Chris Smowton; +Cc: linux-kernel
On Fri, Jan 11 2008, Chris Smowton wrote:
> Just a couple of quick questions if anyone can shed light regarding
> functions exported for modules relating to splice():
>
> * Is there a particular reason why the useful helper __splice_from_pipe
> is exported, but not the locking equivalent splice_from_pipe or its
> equally useful helper splice_to_pipe?
> * Similarly is there anything wrong with exporting the generic
> pipe-buffer operations (e.g. generic_pipe_buf_map) to save effort
> writing modules which implement splice_read and splice_write?
>
> Are these unexported because they are unstable and not yet considered
> suitable for use, or simply because nobody's written a module that
> splice()s yet?
The latter, I generally don't export things until they are used.
__splice_from_pipe() wasn't exported until some file systems grew they
own splice implementations.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-01-11 9:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-11 2:43 Splice(): exports for module programmers Chris Smowton
2008-01-11 9:06 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox