netdev
[Top] [All Lists]

Re: [RFC-2] Configuring Synchronous Interfaces in Linux

To: Mark Cooke <mpc@xxxxxxxxxxxxxxxxxx>
Subject: Re: [RFC-2] Configuring Synchronous Interfaces in Linux
From: Ivan Passos <lists@xxxxxxxxxxxx>
Date: Tue, 5 Dec 2000 11:46:49 -0800 (PST)
Cc: Linux Kernel List <linux-kernel@xxxxxxxxxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <Pine.LNX.4.30.0012051925330.6718-100000@xxxxxxxxxxxxxxxxxx>
Sender: owner-netdev@xxxxxxxxxxx
On Tue, 5 Dec 2000, Mark Cooke wrote:
> 
> struct foo {
>       unsigned int    crufty_compatability_number;
>       .
>       .
>       .
> };
> 
>  ?

The problem is not this, but structure alignment and copy_[to|from]_user
operations. This approach, although it's my preferred one (due to being
self-contained), requires synchronization between kernel and utility, and
this sometimes is not always true.

Anyhow, I still prefer this approach over the "tons of different ioctl's"
one. I'd like to get the opinion of the community though (especially
Alan).

Later,
Ivan


<Prev in Thread] Current Thread [Next in Thread>