[openbeosnetteam] Re: Select code...
- From: "Philippe Houdoin" <philippe.houdoin@xxxxxxx>
- To: openbeosnetteam@xxxxxxxxxxxxx
- Date: Wed, 27 Mar 2002 03:41:04 -0500 (EST)
Axel wrote:
> > This is the code I'm using and it doesn't work!
>
> The kernel's ioctl obviously don't return the exact value you return
in
> your driver hook.
> Although, judging from the implementation (in fs-kit) it should do
> that...?
Yes, unfortunatly it seems that R5 ioctl() is broken on this topic, and
always return
B_ERROR (-1) when the driver control hook return a negative value...
Even Howard Berkley hit this bug. Look at the structure he use to
communicate between BONE lobsocket.so and his /dev/net/api BONE driver:
----------8<-----------------------------
typedef struct socket_ioctl
{
int rc;
int family;
int type;
int proto;
} socket_ioctl_t;
-----------8<---------------------------
We can bet that this first 'rc' field, present in all *_ioctl
structures used, stands for 'result code'.
Let follow his solution...
Philippe.
--
Fortune Cookie Says:
Different all twisty a of in maze are you, passages little.
- Follow-Ups:
- [openbeosnetteam] Re: Select code...
- From: David Reid
Other related posts:
- » [openbeosnetteam] Select code...
- » [openbeosnetteam] Re: Select code...
- » [openbeosnetteam] Re: Select code...
- » [openbeosnetteam] Re: Select code...
- » [openbeosnetteam] Re: Select code...
- » [openbeosnetteam] Re: Select code...
- » [openbeosnetteam] Re: Select code...
- » [openbeosnetteam] Re: Select code...
- » [openbeosnetteam] Re: Select code...
- » [openbeosnetteam] Re: Select code...
- » [openbeosnetteam] Select code...
- [openbeosnetteam] Re: Select code...
- From: David Reid