Oct. 10, 2017
7:50 a.m.
On Tue, 10 Oct 2017 10:17:09 +1100, "Tobin C. Harding" said:
I would like to create a boot time variable i.e a variable that is set once at boot time. Variable does not need to be globally accessible. (actually I am using two variables).
The canonical way to have stuff happen at boot is usually declaring an initcall.
how/where to initialize the lock in a race free manner?
Step 0: Figure out how once-at-boot code could *possibly* be called a second time. What are you worried about racing here?