From owner-freebsd-hackers Wed Jun 28 16:56: 0 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from granger.mail.mindspring.net (granger.mail.mindspring.net [207.69.200.148]) by hub.freebsd.org (Postfix) with ESMTP id CA9E737B69C for ; Wed, 28 Jun 2000 16:55:45 -0700 (PDT) (envelope-from vsilyaev@mindspring.com) Received: from jupiter.delta.ny.us (nyf-ny12-31.ix.netcom.com [198.211.18.223]) by granger.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id TAA22650; Wed, 28 Jun 2000 19:55:30 -0400 (EDT) Received: (from vsilyaev@localhost) by jupiter.delta.ny.us (8.9.3/8.9.3) id TAA06792; Wed, 28 Jun 2000 19:55:28 -0400 (EDT) (envelope-from vsilyaev) Date: Wed, 28 Jun 2000 19:55:28 -0400 From: "Vladimir N. Silyaev" To: Wilbert de Graaf Cc: freebsd-hackers@freebsd.org Subject: Re: Getting the plain void* through the generic ioctl processing Message-ID: <20000628195528.A6739@jupiter.delta.ny.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You have to declare ioctl as the next: #define SIO_SET_MULTICAST_FILTER _IO ('s', 63) And after that in your code mannualy via functions documented in copy(9) and fetch(9) manpages, to access that user space structure, user space pointer will be available for you as third arument in your ioctl handler. -- Vladimir To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message