Skip to content

refactor: Rename lua* modules to luna* and introduce new luna m…#423

Closed
iammuntazirali wants to merge 1 commit intoluainkernel:masterfrom
iammuntazirali:master
Closed

refactor: Rename lua* modules to luna* and introduce new luna m…#423
iammuntazirali wants to merge 1 commit intoluainkernel:masterfrom
iammuntazirali:master

Conversation

@iammuntazirali
Copy link
Copy Markdown

Issue #414: Rename Lunatik Bindings – Walkthrough

Summary

Renamed all Lunatik binding files from lua<libname>.c to luna<libname>.c to make it easier to identify loaded modules using lsmod | grep luna.


Changes Made

Files Renamed (31 total)

lib/ directory – 25 C source files

Original | Renamed -- | -- luabyteorder.c | lunabyteorder.c luacompletion.c | lunacompletion.c luacpu.c | lunacpu.c luacrypto_aead.c | lunacrypto_aead.c luacrypto_comp.c | lunacrypto_comp.c luacrypto_rng.c | lunacrypto_rng.c luacrypto_shash.c | lunacrypto_shash.c luacrypto_skcipher.c | lunacrypto_skcipher.c luadata.c | lunadata.c luadevice.c | lunadevice.c luafib.c | lunafib.c luafifo.c | lunafifo.c luahid.c | lunahid.c lualinux.c | lunalinux.c luanetfilter.c | lunanetfilter.c luanotifier.c | lunanotifier.c luaprobe.c | lunaprobe.c luarcu.c | lunarcu.c luasignal.c | lunasignal.c luaskel.c | lunaskel.c luasocket.c | lunasocket.c luasyscall.c | lunasyscall.c luathread.c | lunathread.c luaxdp.c | lunaxdp.c luaxtable.c | lunaxtable.c

Build System Updates

  • Updated all binding module references from lib/lua*.o to lib/luna*.o

  • Updated usr/lib/xtable/Makefile to reference lunaxt.c


Internal Header References (16 updates)

Updated #include directives in affected C files:

  • lunacrypto.h: lunacrypto_aead.c, lunacrypto_shash.c, lunacrypto_skcipher.c, lunacrypto_comp.c, lunacrypto_rng.c

  • lunadata.h: lunahid.c, lunaxdp.c, lunaxtable.c, lunanetfilter.c, lunadata.c

  • lunarcu.h: lunaxdp.c, lunaxtable.c, lunarcu.c

  • lunanetfilter.h: lunaxtable.c

  • lunaxtable.h: lunaxtable.c


Verification Results

  • ✓ 25 luna*.c files in lib/

  • ✓ 5 luna*.h files in lib/

  • ✓ 1 lunaxt.c in usr/lib/xtable/

  • ✓ No remaining lua*.c or lua*.h binding files

  • ✓ No broken references in the build system

…odules for XDP, RCU, and other functionalities.
@carloslack
Copy link
Copy Markdown
Collaborator

carloslack commented Jan 31, 2026

Is there a reason for renaming these? I looks quite a big change if it is just to help lsmod|grep

You could just generate different output .ko files names by changing Kbuild, instead of renaming the files on disk.

@lneto
Copy link
Copy Markdown
Contributor

lneto commented Jan 31, 2026

It seems that you have removed and added the files instead of just renaming it on git..

@lneto
Copy link
Copy Markdown
Contributor

lneto commented Jan 31, 2026

Is there a reason for renaming these? I looks quite a big change if it is just to help lsmod|grep

You could just generate different output .ko files names by changing Kbuild, instead of renaming the files on disk.

Yeah.. the issue was meant to discuss it before doing it.. I was expecting to have some discussion on pros and cons first..

@lneto
Copy link
Copy Markdown
Contributor

lneto commented Jan 31, 2026

Btw, @iammuntazirali, did you test it?

@lneto lneto closed this Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants