From owner-freebsd-hackers Sun May 7 1:50:59 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.surf1.de (mail.Surf1.de [194.25.165.21]) by hub.freebsd.org (Postfix) with ESMTP id 40EF037BA1F for ; Sun, 7 May 2000 01:50:56 -0700 (PDT) (envelope-from alex@cichlids.com) Received: from cichlids.com (p3E9D38EC.dip0.t-ipconnect.de [62.157.56.236]) by mail.surf1.de (8.9.3/8.9.3) with ESMTP id JAA08360; Sun, 7 May 2000 09:49:36 +0200 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by cichlids.com (Postfix) with ESMTP id 472EFAC2C; Sun, 7 May 2000 10:55:42 +0200 (CEST) Received: (from alex@localhost) by cichlids.cichlids.com (8.9.3/8.9.3) id KAA02756; Sun, 7 May 2000 10:50:52 +0200 (CEST) (envelope-from alex) Date: Sun, 7 May 2000 10:50:52 +0200 From: Alexander Langer To: Jake Burkholder Cc: hackers@FreeBSD.ORG Subject: Re: problem with ioctl handler in a module Message-ID: <20000507105052.A1081@cichlids.cichlids.com> References: <20000506195810.31B4ABCA7@io.yi.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000506195810.31B4ABCA7@io.yi.org>; from jburkhol@home.com on Sat, May 06, 2000 at 12:58:10PM -0700 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thus spake Jake Burkholder (jburkhol@home.com): > The request parameter to ioctl needs to contain length information. > I think you want something like: > #define ZIVA_IOCTL _IOW('c', 10, int) > ioctl(fd, ZIVA_IOCTL, &foo); That's it. Thanks! Alex -- I need a new ~/.sig. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message