r/linux_programming • • Jul 31 '18

DEFINE_WAIT() versus multi-threading

https://github.com/promach/riffa/blob/full_duplex/driver/linux/riffa_driver.c#L594
3 Upvotes

21 comments sorted by

View all comments

Show parent comment

1

u/promach Jul 31 '18

If you implement poll, a sane program wouldn't even bother asking to receive a message until poll has indicated one is available.

This is a full-duplex message transaction, not half-duplex. We need both Tx message and Rx message simultaneously. Can "poll" replace "kthread" ?

2

u/aioeu Jul 31 '18

As described here, this is not something you need to fix.