# Linux Kernel Module Cheat

#### 38.15.5. lkmc.c

The files:

- lkmc.c

- lkmc.h

contain common C function helpers that can be used both in userland and baremetal. Oh, the infinite joys of Newlib.

Those files also contain arch specific helpers under ifdefs like:

    #if defined(__aarch64__)

We try to keep as much as possible in those files. It bloats builds a little, but just makes everything simpler to understand.

Link with lkmc.o is enabled with the path_properties.py

    'extra_objs_lkmc_common': False,