From owner-freebsd-hackers Wed May 3 04:15:49 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id EAA14479 for hackers-outgoing; Wed, 3 May 1995 04:15:49 -0700 Received: from hq.icb.chel.su (icb-rich-gw.icb.chel.su [193.125.10.34]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id EAA14466 for ; Wed, 3 May 1995 04:15:17 -0700 Received: from localhost (babkin@localhost) by hq.icb.chel.su (8.6.5/8.6.5) id RAA08593 for hackers@freebsd.org; Wed, 3 May 1995 17:11:22 +0500 From: "Serge A. Babkin" Message-Id: <199505031211.RAA08593@hq.icb.chel.su> Subject: How to allocate kernel address space ? To: hackers@FreeBSD.org Date: Wed, 3 May 1995 17:11:22 +0500 (GMT+0500) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 600 Sender: hackers-owner@FreeBSD.org Precedence: bulk Is there any function for allocating of kernel address space (not memory but address space for device's memory) ? I studied the existing drivers and I found that they assume that virtual address space in kernel mode is equal to the physical one. But there is something strange: they convert physical addresses to virtual ones by simply assigning, but they convert virtual addresses to physical ones using kvtop(). Why ? For additional check ? Thank you for your answers. Serge Babkin ! (babkin@hq.icb.chel.su) ! Headquarter of Joint Stock Commercial Bank "Chelindbank" ! Chelyabinsk, Russia