mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* large & fragmented TUX requests
@ 2001-08-02 22:12 Peter J. Braam
  2001-08-21 13:14 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Peter J. Braam @ 2001-08-02 22:12 UTC (permalink / raw)
  To: tux-list, intermezzo-devel, linux-kernel

Hi, 

I am working on a protocol handler for InterMezzo.  This is a kernel
level protocol handler than can unpack DAFS style packets and service
the requests.

I have two basic questions about the code (looking at 2.4.6-3.1)

1) input.c

If a request arrives in multiple pieces, req->proto->parse_message
returns 0 and read_request is called multiple times.  Why is read
request not overwriting data that was already received?

2) large requests

Some of the RPC's I want to handle are for receiving file data. Would
it make sense when it is known that a large page aligned buffer with
file data is coming, to simply allocate buffers of the right size (say
up to 64K max) and point req->req_headers at it?

In that way I can read the chunk in and later map the pages into a
file to get it to disk.  

There is no standard "recv_file" (ala sendfile) api, right? 

Thanks for pointers and thoughts.

- Peter -

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-08-21 13:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-02 22:12 large & fragmented TUX requests Peter J. Braam
2001-08-21 13:14 ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®