Add a rather hackish implementation of kernel categories intended
to demostrate that the mechanism works. A refactor is required
to fill a caller provided buffer and to move adding "sys/" inside.
Sponsored by: Innovate UK
Differential D58238
uexterr_gettext(3): support dynamic kernel categories Authored by brooks on Tue, Jul 14, 8:08 PM. Tags None Referenced Files
Subscribers
Details
Diff Detail
Event TimelineComment Actions I think I want to refactor cat_to_filename() to take a buffer and to handle the selective prepending of sys/, perhaps bumping the uexterr_gettext ABI. It's fine for in-tree code, but definitely wrong for out of tree modules.
Comment Actions Having just hit submit... I wonder if we want to spend the available bit in EXTERR_CAT_SRC_MASK on in-tree vs out of tree or maybe just make pre-pending sys/ a legacy category source thing. Comment Actions This adds two syscalls to each dynamic syscall failure path. I understand that calling the sysctl is the easiest way to handle dynamically loaded modules. But I already got some negative comments due to exterrors adding some nanoseconds to the failing syscalls timings. | |||||||||||||||||||||||||||||||||||