Wolfgang Grandegger wrote:
> Marc Kleine-Budde wrote:
>>>> The driver with NAPI receiving messages with a length of 1 on a 1 Mbit
>>>> link without swapping the messages (tested with pengutronix cansequence).
>>> Please use Vladislavs' canecho_gen/duts at 125kB/sec, which is more
>>> sensitive. Don't forget to fix the unhanded errno ENOBUFS of the write
>>> functions.
>> using select/poll would be better than calling sched_yield
>
> Well, yes, could this easily be achieved? Oliver?
AFAIK the can-raw socket also supports polling:
static struct proto_ops raw_ops __read_mostly = {
.family = PF_CAN,
.release = raw_release,
.bind = raw_bind,
.connect = sock_no_connect,
.socketpair = sock_no_socketpair,
.accept = sock_no_accept,
.getname = raw_getname,
.poll = datagram_poll,
(..)
I use select() in many cases - but currently only for reading from
filedescriptors ...
Regards,
Oliver
_______________________________________________
Socketcan-core mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-core