dnsjit.core.loader(3)
π dnsjit.core.loader β Dynamic library loader π
okay bestie, this is the dnsjit.core.loader page from the dnsjit library functions manual, and it's literally the little glue that goes and fetches your .so files for you. no cap. π¦
β¨ SYNOPSIS β¨
local loader = require("dnsjit.core.loader")
loader.load("example-input-zero/zero")
πΈ DESCRIPTION πΈ
so this module is for loading dynamic libraries (.so files) in more ways than LuaJIT can. the way it's mostly used? in external modules. that's the whole vibe. π
π Functions π
Loader.load(name, global)β it goes searching throughpackage.cpathfor thenameyou gave it and loads the first one it finds. ifglobalis true β and heads up, it's default true if you don't pass it at all β then the loaded symbols will also be available globally. it hands you back the loaded C library exactly as perffi.load(). π«Ά
also, the ? in each path of package.cpath gets replaced by the name you passed in, which is why you usually don't need to type the .so part of the library name at all. iconic behaviour honestly.
if you wanna go deeper, seepackage.cpathandpackage.loadersin Lua 5.1 for more info. iykyk π
π AUTHORS and CONTRIBUTORS π
the absolute legends behind this:
- Jerry LundstrΓΆm (DNS-OARC)
- TomΓ‘Ε‘ KΕΓΕΎek (CZ.NIC)
- Petr Ε paΔek (ISC)
Maintained by DNS-OARC π
https://www.dns-oarc.net/
π BUGS π
got issues? got a feature request? (very valid of you)
https://codeberg.org/DNS-OARC/dnsjit/issues
questions or need help? (also very valid)
admin@dns-oarc.net
and that's the whole page, bestie β this was dnsjit version 1.5.1, dated dnsjit.core.loader(3), from the library functions manual. slay, go load some libraries responsibly. πβ¨π
π¦ where this page comes from
- epel 10: dnsjit 1.5.1-2.el10_2 Β· GPL-3.0-or-later
- epel 9: dnsjit 1.5.1-2.el9 Β· GPL-3.0-or-later
- fedora 43: dnsjit 1.5.1-2.fc43 Β· GPL-3.0-or-later
- fedora 43: dnsjit 1.5.1-2.fc43 Β· GPL-3.0-or-later
- fedora 44: dnsjit 1.5.1-2.fc44 Β· GPL-3.0-or-later
- fedora 44: dnsjit 1.5.1-2.fc44 Β· GPL-3.0-or-later
- ubuntu resolute: dnsjit 1.5.1-2 Β· GPL-3.0-or-later
- ubuntu stonking: dnsjit-dev 1.5.1-6 Β· GPL-3.0-or-later
- Copyright (c) 2018-2026 OARC, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms