From owner-freebsd-questions Sun Dec 27 21:28:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA23514 for freebsd-questions-outgoing; Sun, 27 Dec 1998 21:28:40 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA23505 for ; Sun, 27 Dec 1998 21:28:36 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id PAA27126; Mon, 28 Dec 1998 15:57:58 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id PAA30389; Mon, 28 Dec 1998 15:58:01 +1030 (CST) Message-ID: <19981228155801.Y12346@freebie.lemis.com> Date: Mon, 28 Dec 1998 15:58:01 +1030 From: Greg Lehey To: Cain Cc: FreeBSD Questions Subject: uap (was: lkm arguments) References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from Cain on Thu, Dec 10, 1998 at 05:32:32PM -0500 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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