From owner-freebsd-hackers Tue Jan 6 08:42:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA28222 for hackers-outgoing; Tue, 6 Jan 1998 08:42:11 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from db2server.voga.com.br (db2server.voga.com.br [200.239.39.7]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA27717 for ; Tue, 6 Jan 1998 08:35:25 -0800 (PST) (envelope-from daniel_sobral@voga.com.br) From: daniel_sobral@voga.com.br Received: from papagaio.voga.com.br (papagaio.voga.com.br [200.239.39.2]) by db2server.voga.com.br (8.8.3+2.6Wbeta9/8.8.7) with SMTP id OAA10104; Tue, 6 Jan 1998 14:31:48 -0200 Received: by papagaio.voga.com.br(Lotus SMTP MTA v1.06 (346.7 3-18-1997)) id 03256584.00604952 ; Tue, 6 Jan 1998 14:31:42 -0300 X-Lotus-FromDomain: VOGA To: mike@smith.net.au cc: hackers@FreeBSD.ORG Message-ID: <83256584.005F6BFE.00@papagaio.voga.com.br> Date: Tue, 6 Jan 1998 14:31:38 -0300 Subject: Re: Device Driver Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk > > * My device driver should be used mainly by other > > kernel routines. How should I proceed? Is there a > > standard interface or something? > You need to be more specific about this before it's > possible to give a really useful answer. Look at the > network drivers and disk drivers for two sorts of > drivers that are used primarily by other kernel code. My mind got a panic with the Too Many Files error, and, unfortunately, its debugging tools are almost non-existant, and very time-consuming to use... ;-) Anyway, bpf.c helped with my first question (how to deal with the sloooooow i/o), and Julian's answer dealt with the third. So, let's put the second question (above) in another way. The card I'm writing a device for is a cryptography card. It will be using by networking code (not mine) directly in kernel. So, the device will be accessed most of the time from other parts of the kernel. Now, I understand cdevsw and bdevsw provide a standard interface between the device and userland processes, but is there any kind of standard interface for use by other routines in-kernel? -- Daniel C. Sobral (8-DCS) Daniel_Sobral@voga.com.br