How to pass a value to a builtin Linux kernel module at boot time?

后端 未结 3 1328
轮回少年
轮回少年 2021-02-04 11:14

I want to pass a custom parameter to the kernel at boot time, which my new code will use. This parameter is a number.

I know how to pass value to kernel module using ker

3条回答
  •  别那么骄傲
    2021-02-04 12:14

    If you know how to pass a value to a kernel module, you know enough :)

    insmod my_module param=value

    If your module is built-in in the kernel, you can add your parameter to the kernel parameters

    vmlinux ... my_module.param=value ...

    Here a reference: kernel-parameters.txt

提交回复
热议问题