[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sendfile in FreeBSD 2.2
- Subject: sendfile in FreeBSD 2.2
- From: tlambert2 at mindspring.com (Terry Lambert)
- Date: Mon Jun 2 23:50:00 2003
Vijay_(_dot_)_Singh_(_at_)_nokia_(_dot_)_com wrote:
>
> Hi, I am following up my own post. I have been able to do most
> of the porting, but I have one question. What do I replace the
> OFF_TO_IDX() macro with? I could start with code that always
> passes the offset as 0 (sending the complete file). Any help
> would be appreciated.
See vm/vm_object.h in a more recent set of sources. Basically,
all it does is, given a file offset, return a page index by
dividing by the page size (shifting rught PAGE_SHIFT worth of
bits).
-- Terry
Visit your host, monkey.org