Date: Mon, 28 Dec 1998 15:58:01 +1030 From: Greg Lehey <grog@lemis.com> To: Cain <cain@tasam.com> Cc: FreeBSD Questions <questions@FreeBSD.ORG> Subject: uap (was: lkm arguments) Message-ID: <19981228155801.Y12346@freebie.lemis.com> In-Reply-To: <Pine.BSF.3.96.981210172741.1114A-100000@tasam.com>; from Cain on Thu, Dec 10, 1998 at 05:32:32PM -0500 References: <Pine.BSF.3.96.981210172741.1114A-100000@tasam.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, 10 December 1998 at 17:32:32 -0500, Cain wrote: > I'm playing around with lkm programming and I can't figure out howto pass > arguments... I'm using the sysent structure which has room for the number > of arguments(sy_narg) and the procedure to use (*sy_call), but since > *sy_call is type sy_call_t I'm stuck to only being able to pass the > process and the void *uap thingy which I don't know what thats for... I'm > tryin to write a misc module and am basing everything I do out of the > /usr/share/examples/lkm/misc lkm examples, does anybody have any other > manuals or some sort of advice? I may be going about this the totally > wrong way as well, anyways, please reply directly as I'm not on this > list... Hmm. I've been meaning to answer this for a couple of weeks, and today, when the LKMs were finally killed, seems appropriate :-) Your question has nothing to do with LKMs. The uap structure is a pointer to your arguments. You probably should have sent this message to -hackers. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981228155801.Y12346>