From owner-freebsd-hackers Tue Jan 6 13:59:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA26510 for hackers-outgoing; Tue, 6 Jan 1998 13:59:05 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from word.smith.net.au (ppp10.portal.net.au [202.12.71.110]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA26405 for ; Tue, 6 Jan 1998 13:58:14 -0800 (PST) (envelope-from mike@word.smith.net.au) Received: from word (localhost [127.0.0.1]) by word.smith.net.au (8.8.8/8.8.5) with ESMTP id IAA01368; Wed, 7 Jan 1998 08:21:11 +1030 (CST) Message-Id: <199801062151.IAA01368@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: daniel_sobral@voga.com.br cc: mike@smith.net.au, hackers@FreeBSD.ORG Subject: Re: Device Driver In-reply-to: Your message of "Tue, 06 Jan 1998 14:31:38 -0300." <83256584.005F6BFE.00@papagaio.voga.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 07 Jan 1998 08:21:11 +1030 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk > 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. I guess, again, it depends on how you plan to use the card, and how the card has to be talked to. Will you be using it to perform end-to-end encryption on sockets? How about encrypting the entire contents of ethernet datagrams? Is the output of the card complete in itself, or does it encrypt streams of data? > 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? Again, that depends on how you talk to it. Sometimes you will use the standard device entries (if you plan to use those semantics from elsewhere in the kernel), and sometimes you need other interfaces. "More input?" -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\