From owner-freebsd-hackers Fri May 21 11:26:23 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from sol (cs1-gw.cs.binghamton.edu [128.226.171.72]) by hub.freebsd.org (Postfix) with SMTP id 9953314E3B for ; Fri, 21 May 1999 11:26:21 -0700 (PDT) (envelope-from zzhang@cs.binghamton.edu) Received: from localhost (zzhang@localhost) by sol (SMI-8.6/8.6.9) with SMTP id OAA12960 for ; Fri, 21 May 1999 14:15:21 -0400 Date: Fri, 21 May 1999 14:15:20 -0400 (EDT) From: Zhihui Zhang To: freebsd-hackers@freebsd.org Subject: mmap of a network buffer Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I really do not know how to describe the problem. But a friend here asks me how to mmap a network buffer so that there is no need to copy the data from user space to kernel space. We are not sure whether FreeBSD can create a device file (mknod) for a network card, and if so, we can use the mmap() call to do so because mmap() requires a file descriptor. We assume that the file descriptor can be acquired by opening the network device. If this is infeasible, is there another way to accomplish the same goal? Thanks for any enlightment. -Zhihui -------------------------------------------------- Zhihui Zhang. Please visit http://www.freebsd.org -------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message