opnsense-src/sys/tests
Gleb Smirnoff ee507b70f1 netlink: refactor KPI for generic Netlink modules
Now that the family and group are completely private to netlink_generic.c,
provide a simple and robust KPI, that would require very simple guarantees
from both KPI and the module:

* Strings are used only for family and group registration, that return ID:
  uint16_t genl_register_family(const char *name, ...
  uint32_t genl_register_group(uint16_t family, const char *name, ...
* Once created families and groups are guaranteed to not disappear and
  be addressable by their ID.
* All subsequent calls, including deregistration shall use ID.

Reviewed by:		kp
Differential Revision:	https://reviews.freebsd.org/D48845
2025-02-05 10:09:06 -08:00
..
epoch sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
fib_lookup sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
framework tests: Stop checking for failures from malloc(M_WAITOK) 2024-09-03 18:25:21 +08:00
runtest sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
kern_testfrwk.h sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
ktest.c netlink: refactor KPI for generic Netlink modules 2025-02-05 10:09:06 -08:00
ktest.h ktest: make ktest work with Netlink loaded as a module. 2023-06-13 06:04:14 +00:00
ktest_example.c Testing: add framework for the kernel unit tests. 2023-04-14 15:47:55 +00:00