Messages in this thread | | | Subject | Re: [PATCH] staging: pi433: add descriptions for mutex locks | From | Marcus Wolf <> | Date | Sun, 25 Mar 2018 15:00:09 +0200 |
| |
Hi Valentin,
> But I have an idea to remove this kfifo_reset call in pi433_write > handling partial message writes: > > kfifo_reset(&device->tx_fifo); // TODO: maybe find a solution, not to discard already stored, valid entries > > The writer could acquire the lock and than use kfifo_avail to check if > there is enough space to write the whole message. What do you think?
Unfortunaly I can't find the time to have a closer look on the code this weekend - still busy with tax stuff :-(
Idea sounds great. I'll try to look at the code and think about it during Easter hollidays.
Cheers,
Marcus
-- Smarthome-Wolf UG (haftungsbeschränkt) Helene-Lange-Weg 23 80637 München Amtsgericht München, HRB 223529 Umastzsteuer-ID: DE304719911 Geschäftsführer: Marcus Wolf
| |