Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Apr 2001 14:40:54 -0700 (PDT)
From:      Doug Ambrisko <ambrisko@ambrisko.com>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   Any ideas for add driver info to linprocfs?
Message-ID:  <200104202140.f3KLesY94622@ambrisko.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104202140.f3KLesY94622>