Re:Facebook open-sources new suite of Linux kernel component...
by DelightOne on Tuesday October 30, 2018 @05:47PM
(#18341552)
I finally understand what program type stands for and the gist of the rest, thank you.
So in the I2C case, I could see device drivers that get called to handle the weird things that I2C devices do where you're not really sure until master interrupt time exactly what needs to happen next and you need to make a real time decision. So a BPF program that implements a state machine and is run directly from the master interrupt could be more performant and more power efficient than doing it in user space, and safer than doing it in kernel space.
Did that answer your question?