From owner-freebsd-hackers Wed Jun 12 06:40:37 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA02309 for hackers-outgoing; Wed, 12 Jun 1996 06:40:37 -0700 (PDT) Received: from teil.soft.net (tata_elxsi.soft.net [164.164.10.2]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id GAA02303 for ; Wed, 12 Jun 1996 06:40:30 -0700 (PDT) Received: by teil.soft.net (920330.SGI/920502.SGI.JF) for hackers@FreeBSD.ORG id AA13583; Wed, 12 Jun 96 19:10:12 -0800 From: rishim@teil.soft.net (Rishi Gautam) Message-Id: <9606130310.AA13583@teil.soft.net> Subject: Need help for pseudo driver To: hackers@FreeBSD.ORG Date: Wed, 12 Jun 1996 19:10:11 -0800 (PST) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi I want to write a pseudo device on FreeBSD. I want the number of pseudo-interface to be configurable? Please tell me what I have to do in the kernel configuration file and also in the driver code. For this I looked on in the SLIP driver. It's include "sl.h" in the if_sl.c. But I couldn't find the file in the src tree. Is the file will created after running the config command, or it will be automatically created during the compilation? I am also confused about the define value NSL in if_sl.c. Could you tell me where it is defined. In my pseudo driver I want to use such values, which will be same as the unit number for the pseudo device entry in the MYKERNEL configuration file . Please send the information to me. Thanking you. Rishi G M rishim@teil.soft.net