From owner-freebsd-hackers Mon Jan 5 12:12:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA06938 for hackers-outgoing; Mon, 5 Jan 1998 12:12:19 -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 MAA06810 for ; Mon, 5 Jan 1998 12:10:28 -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 SAA13008 for ; Mon, 5 Jan 1998 18:10:59 -0200 Received: by papagaio.voga.com.br(Lotus SMTP MTA v1.06 (346.7 3-18-1997)) id 03256583.00745BD8 ; Mon, 5 Jan 1998 18:10:56 -0300 X-Lotus-FromDomain: VOGA To: hackers@FreeBSD.ORG Message-ID: <83256583.0073B33A.00@papagaio.voga.com.br> Date: Mon, 5 Jan 1998 18:10:54 -0300 Subject: Device Driver Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk More bugging^^Wquestions: * The excelent device driver squeleton creator shell happens to create a file (called "nameio.h") a install it on /usr/include/sys, for the express purpose of IOCTL defines. Now, many drivers use /usr/include/machine instead. Which should I prefer? * My device driver should be used mainly by other kernel routines. How should I proceed? Is there a standard interface or something? * The $#*@*$ card needs timeouts from one to ten (!!!) seconds, and has no IRQ, for reads and writes! Now, blocking a process is easy (I suppose -- I haven't checked out how do it yet), but how should I proceed regarding the procedures called by other parts of the kernel? * Regarding major/minor number (I don't quite grok that yet), may I suppose the script did the right thing (current system)? Insightful thoughts would be appreciated. -- Daniel C. Sobral (8-DCS) Daniel_Sobral@voga.com.br