I am passing a string as parameter when loading a kernel module. When the string is > 1024 chars, modprobe results in an error:
FATAL: Error inserting mymodule (/lib/modules..): No space left on device
dmesg output:
mystr: string parameter too long
Are module parameters limited to 1024 char strings?
I think not only module but also all linux command kernel parameters are limited to 1024 char. From linux source code, file
kernel/params.c
:So the answer, you can not pass parameter which bigger than 1024 chars.