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?
Attachment:
pgpJSZpOyitrS.pgp
Description: PGP signature
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies