Re: boot time variable

2017-10-10 Thread Tobin C. Harding
On Tue, Oct 10, 2017 at 09:08:30AM +0200, Greg KH wrote: > On Tue, Oct 10, 2017 at 10:17:09AM +1100, Tobin C. Harding wrote: > > Hi, > > > > I would like to create a boot time variable i.e a variable that is set once > > at boot time. Variable > > does n

Re: boot time variable

2017-10-10 Thread valdis . kletnieks
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 stuf

Re: boot time variable

2017-10-10 Thread Greg KH
On Tue, Oct 10, 2017 at 10:17:09AM +1100, Tobin C. Harding wrote: > Hi, > > 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). static foo = 42; sh

boot time variable

2017-10-09 Thread Tobin C. Harding
Hi, 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). Could any one point me to examples of this already intree please? I have tried the following but it has a race