From owner-freebsd-hackers Fri Apr 20 14:40:58 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ambrisko.com (adsl-216-103-208-74.dsl.snfc21.pacbell.net [216.103.208.74]) by hub.freebsd.org (Postfix) with ESMTP id 8642337B423 for ; Fri, 20 Apr 2001 14:40:55 -0700 (PDT) (envelope-from ambrisko@ambrisko.com) Received: (from ambrisko@localhost) by ambrisko.com (8.11.3/8.11.2) id f3KLesY94622 for freebsd-hackers@FreeBSD.ORG; Fri, 20 Apr 2001 14:40:54 -0700 (PDT) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <200104202140.f3KLesY94622@ambrisko.com> Subject: Any ideas for add driver info to linprocfs? To: freebsd-hackers@FreeBSD.ORG Date: Fri, 20 Apr 2001 14:40:54 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've been working on getting things cleaned up for the Aironet driver to emulate the Cisco Linux ioctls so that the binary only utilities for configurating and flashing Aironet cards just work. I send-pr'ed the minor changes to add some DEVPRIVATE ioctls to the emulation layer and support that maps ethX into a FreeBSD ethernet device. However the Cisco binaries want to open "/proc/aironet", well under emulation it also tries "/compat/linux/proc/aironet" first. It does it to detect if the Linux Aironet driver is installed. I can make it work if I unmount "/compat/linux/proc" so that I don't use the linprocfs emulation stuff and then create the directory "/compat/linux/proc/aironet". Is there a way I could detect linprocfs is active and then tell it to create this entry when I attach the Aironet driver (if_an.c)? So it seems I would need a mechanism to: 1) Detect if linprocfs is loaded 2) Tell it to create an "aironet" entry in the root of the proc tree. I don't really have any ideas right now on how to do this. Thanks, Doug A. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message