Re: PROPOSAL: dot-proc interface [was: /proc stuff]

Ben Greear (greearb@candelatech.com)
Mon, 05 Nov 2001 15:01:43 -0700


Tim Jansen wrote:

> On Monday 05 November 2001 14:41, Petr Baudis wrote:
>
>>So, please, can you enlighten me, what's so wrong on sysctl?
>>
>
> It doesn't work for complex data, especially lists. How do you want to
> configure devices, for example?

How about this:

struct ioctl_payload {
int how_many;
int* numbers;
};

User space sets things up normally, with a valid pointer in 'numbers'.
Kernel space copy_from_user the structure, then copy_from_user the number's
memory...

Can that work? If so, numbers could of course be any data structure we want...

>
> bye...
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
>

-- 
Ben Greear <greearb@candelatech.com>       <Ben_Greear AT excite.com>
President of Candela Technologies Inc      http://www.candelatech.com
ScryMUD:  http://scry.wanfear.com     http://scry.wanfear.com/~greear

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/