> For correct flow control, i suppose current empty space of the real > (final) printk buffer is needed. On the other hand my intermediate
Console drivers have their own buffering so that doesn't really work. If you want to just avoid explosions then you don't need to be quite so clever > in some logical manner. And the other would be to use ratelimit support > to switch between max and zero in write_room answer and remove other > retelimit response? Yes - except that a driver isn't permitted to reduce the write room space by more than bytes written. That is if you offer 512 bytes you can't offer 0 until 512 bytes have been written - hence the design of the pseudo code I posted in the previous message. -- To unsubscribe from this list: send the line "unsubscribe linux-embedded" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html