[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4F4E6B98.2090306@zytor.com>
Date: Wed, 29 Feb 2012 10:16:56 -0800
From: "H. Peter Anvin" <hpa@...or.com>
To: "Joshua C." <joshuacov@...glemail.com>
CC: Bodo Eggert <7eggert@....de>, linux-kernel@...r.kernel.org
Subject: Re: [RESUBMIT] [PATCH] Use BIOS Keyboard variable to set Numlock
On 02/29/2012 03:43 AM, Joshua C. wrote:
>
> I got the idea that we should somehow check the kbd_state and set the
> numlock accordingly but this is behind my capabilities. I tried
> several times to read those boot_params but I have no idea how to do
> it. Where are they stored, how to access them? Help anyone?
>
There is a global variable called boot_params; the prototype for it is
defined in <asm/setup.h>.
So as long as you are on an x86 architecture you can just #include
<asm/setup.h> and just access the boot_params structure directly (with
the patch provided to add the new field.)
-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists