4 ms·
the most explored use case is for scripting networking, please see: [1] https://legacy.netdevconf.info/0x14/session.html?talk-linux-network-scripting-with-lua
by lneto 2y ago
the most explored use case is for scripting networking, please see:
[1] https://legacy.netdevconf.info/0x14/session.html?talk-linux-network-scripting-with-lua https://legacy.netdevconf.info/0x14/session.html?talk-linux-...
[2] https://netdevconf.info/0x17/sessions/talk/scripting-the-linux-routing-table-with-lua.html https://netdevconf.info/0x17/sessions/talk/scripting-the-lin...
[3] https://www.netbsd.org/~lneto/dls14.pdf https://www.netbsd.org/~lneto/dls14.pdf
[4] https://www.slideshare.net/eurobsdcon/lneto-npf-scripting https://www.slideshare.net/eurobsdcon/lneto-npf-scripting
[5] https://2018.eurobsdcon.org/static/slides/Fast,%20Flexible%20Packet%20Filtering%20in%20NetBSD%20using%20Lua%20Kernel%20Scripts%20-%20Andrew%20von%20Dollen.pdf https://2018.eurobsdcon.org/static/slides/Fast,%20Flexible%2...
However, it was conceived for extensibility and flexibility in general, in the spirit of [6]. It has been used also for scripting CPU frequency scaling, debugging, application sandboxing among others [7,8].
[6] https://web.stanford.edu/~ouster/cgi-bin/papers/scripting.pdf https://web.stanford.edu/~ouster/cgi-bin/papers/scripting.pd...
[7] https://drive.google.com/file/d/1TJ50IEbRXlBz-TxheGdkO-b4vLS-vcHn/view https://drive.google.com/file/d/1TJ50IEbRXlBz-TxheGdkO-b4vLS...
[8] https://youtu.be/-ufBgy044HI?si=IT4FOqeldA-jsg2r https://youtu.be/-ufBgy044HI?si=IT4FOqeldA-jsg2r (Portuguese only)
ZFS also has its own kernel Lua version (I'd love to unify them, BTW).
Moreover, we have some simplified examples on our repository [9].
[9] https://github.com/luainkernel/lunatik?tab=readme-ov-file#examples https://github.com/luainkernel/lunatik?tab=readme-ov-file#ex...