I need a constant that should not change after initialization. Initialization value is stored in a file. How can i do this? The obvious way is to skip the “const” part and use it freely as a variable, which i resent, as it is really a constant.
You should be able to read the variable in from the host, and pass into the kernel as a READ_ONLY buffer.