Re: User/kernelspace stuff to set/get kernel variables

From: Richard B. Johnson (root@chaos.analogic.com)
Date: Thu Dec 13 2001 - 11:07:14 EST


On Thu, 13 Dec 2001, DevilKin wrote:

> Hello
>
> I've been looking on the web, and couldn't really find what i would want...
>
> Basically: is it possible to - one way or another - set variables at kernel boot and read those using userspace utilities?
>
> for instance: i boot my kernel (using any old bootmanager that accepts kernel params)
>
>
> LILO: linux network=dhcp
>

Is this what you want?

`cat /proc/cmdline`

Cheers,
Dick Johnson

Penguin : Linux version 2.4.1 on an i686 machine (799.53 BogoMips).
 Santa Claus is coming to town...
          He knows if you've been sleeping,
             He knows if you're awake;
          He knows if you've been bad or good,
             So he must be Attorney General Ashcroft.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Dec 15 2001 - 21:00:26 EST