[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get _IOT_disk_parms ?

From: Mark Kettenis
Subject: Re: How to get _IOT_disk_parms ?
Date: Sun, 8 Oct 2000 16:00:11 +0200

   Date: 07 Oct 2000 16:52:30 +0200
   Content-Type: text/plain; charset=us-ascii


   I'm trying to compile the following code fragment:


   Unfortunately, I get this compilation error:

   gcc -g -Wall -I/gnu/include    geom.c   -o geom
   geom.c: In function `store_get_disk_geometry':
   geom.c:19: `_IOT_disk_parms' undeclared (first use in this function)
   geom.c:19: (Each undeclared identifier is reported only once
   geom.c:19: for each function it appears in.)
   geom.c:19: warning: passing arg 3 of `device_get_status' from incompatible 
pointer type

   I've been trying for many many hours now to track down this
   _IOT_disk_parms guy, with no success. What should I include? I'm
   getting desperate.

Hmm, you're mixing Mach and Hurd ioctls here, and get bitten by the
fact that the encodining of the ioctls differs between the two.  The
Mach/i386 ioctl encoding is specified in <mach/i386/ioccom.h>.  The
Hurd ioctl enconding is specified in <bits/ioctls.h>.  There are
simply no _IOT_xxx definitions for Mach ioctls.

I'm not sure if mixing the two should work.  But in this particular
case, you can

   #define _IOT_disk_parms 0x038e

and everything should work fine :-).

By the way, I don't thing V_GETPARMS is supported by oskit-mach.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]