PAGEIO: how to do I/O to bp->b_pages

Joe Uemura uemura at waikiki.isl.melco.co.jp
Fri Jun 29 07:04:59 AEST 1990


I am writing a block device driver under SunOs4.1 and need to figure out
how to do I/O to pages on bp->b_pages when B_PAGEIO is set. Unfortunetely
I have no access to kernel source :-( so i would appreciate if anyone
could let me know how to convert a pp to a kernel virtual address.  I have
noticed that page_pptonum(pp) will give me a pfn back but don't know how
to get a kernel virtual address from a pfn (a la SVR4 pfntokv).

Any pointers to documentation, available kernel functions, sample source
(a generic strategy :-)),  will be appreciated.

Thanks in advance,
Joe Uemura



More information about the Comp.sys.sun mailing list