vbos/include/kernel/driver.h
Michael Shaw b6c9e0a2ba
kernel: move drivers to own file
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-08-11 21:09:36 -04:00

8 lines
344 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _DRIVER_H_
#define _DRIVER_H_
#define DRIVER_ENTRY(fn) static void (*__initcall_##fn)(void) __attribute((used, section(".initcall"))) = fn
#define DRIVER_ENTRY_PRIORITY(fn, pr) static void (*__initcall_##fn)(void) __attribute((used, section(".initcall." #pr))) = fn
#endif /* _DRIVER_H_ */