From owner-freebsd-questions Thu Feb 8 15:37:09 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA08061 for questions-outgoing; Thu, 8 Feb 1996 15:37:09 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id PAA08042 for ; Thu, 8 Feb 1996 15:37:07 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id QAA08813; Thu, 8 Feb 1996 16:34:44 -0700 From: Terry Lambert Message-Id: <199602082334.QAA08813@phaeton.artisoft.com> Subject: Re: ioctl To: Martin.May@sophia.inria.fr (Martin May) Date: Thu, 8 Feb 1996 16:34:44 -0700 (MST) Cc: questions@FreeBSD.ORG, mmay@pax.inria.fr In-Reply-To: <199602081816.TAA26656@pax.inria.fr> from "Martin May" at Feb 8, 96 07:16:25 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG Precedence: bulk > I have a question about kernel programming. > > How can I add an ioctl function? > I want to pass a new struct through an udp-socket. > > Is that possible? What do you mean, "pass a new struct"? If you mean like passing fd's around on UNIX domain sockets, you are probably out of luck. If you mean adding to the interface, you will have to modify the code for the device driver. For socket I/O, this would be /sys/kern/sys_socket.c in the soo_ioctl() function. Atr you sure this is what you need to do? This would be an interface change, so it probably would not be very popular... Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.