From owner-freebsd-questions Thu Dec 10 15:37:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA07771 for freebsd-questions-outgoing; Thu, 10 Dec 1998 15:37:47 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from tasam.com (tasam.com [198.232.144.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA07754 for ; Thu, 10 Dec 1998 15:37:44 -0800 (PST) (envelope-from cain@tasam.com) Received: from localhost (cain@localhost) by tasam.com (8.9.1/8.9.1) with SMTP id RAA06973 for ; Thu, 10 Dec 1998 17:32:33 -0500 (EST) Date: Thu, 10 Dec 1998 17:32:32 -0500 (EST) From: Cain To: freebsd-questions@FreeBSD.ORG Subject: lkm arguments Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message