Path: utzoo!attcan!uunet!cs.utexas.edu!rice!sun-spots-request From: uemura@waikiki.isl.melco.co.jp (Joe Uemura) Newsgroups: comp.sys.sun Subject: PAGEIO: how to do I/O to bp->b_pages Keywords: Miscellaneous Message-ID: <9417@brazos.Rice.edu> Date: 28 Jun 90 21:04:59 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 12 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 9, Issue 241, message 7 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