2005-03-15 09:58:48

by Andrey Volkov

[permalink] [raw]
Subject: RFC: CANbus subsytem for 2.6 kernel (char or netdev)

Hello, all

I look through code of exist CANbus drivers, and have, may be strange,
next question:

Anyone could told me, why everyone, who wrote CANbus driver (peak,
kvaser etc) always use char dev, but not netdev for it? May be exist
some global pitfall, which I couldn't see, which prevent to use netdev?

--
Regards
Andrey Volkov.


2005-03-15 11:05:11

by Benedikt Spranger

[permalink] [raw]
Subject: Re: RFC: CANbus subsytem for 2.6 kernel (char or netdev)


> Anyone could told me, why everyone, who wrote CANbus driver (peak,
> kvaser etc) always use char dev, but not netdev for it? May be exist
> some global pitfall, which I couldn't see, which prevent to use netdev?

Maybe you try out:
http://www.linutronix.de/data/linux-2.6.11-can.diff

Bene

2005-03-15 11:52:45

by Andrey Volkov

[permalink] [raw]
Subject: Re: RFC: CANbus subsytem for 2.6 kernel (char or netdev)

Hi Benedikt,

Yes, thanks, very close to what about I thinking :),
but are you measure overhead of netdev (it disturb me)?

Andrey

Benedikt Spranger wrote:
>>Anyone could told me, why everyone, who wrote CANbus driver (peak,
>>kvaser etc) always use char dev, but not netdev for it? May be exist
>>some global pitfall, which I couldn't see, which prevent to use netdev?
>
>
> Maybe you try out:
> http://www.linutronix.de/data/linux-2.6.11-can.diff
>
> Bene
>

2005-03-15 18:44:06

by Robert Schwebel

[permalink] [raw]
Subject: Re: RFC: CANbus subsytem for 2.6 kernel (char or netdev)

On Tue, Mar 15, 2005 at 02:52:39PM +0300, Andrey Volkov wrote:
> Benedikt Spranger wrote:
> >>Anyone could told me, why everyone, who wrote CANbus driver (peak,
> >>kvaser etc) always use char dev, but not netdev for it? May be exist
> >>some global pitfall, which I couldn't see, which prevent to use netdev?
> >
> >
> >Maybe you try out:
> >http://www.linutronix.de/data/linux-2.6.11-can.diff

We have a newer version of this patch which we are currently making
ready for upstream.

Robert
--
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Hannoversche Str. 2, 31134 Hildesheim, Germany
Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9