[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Accessing external code or data from the 'console' kernel module: Ca
From: |
Andrei Borzenkov |
Subject: |
Re: Accessing external code or data from the 'console' kernel module: Can it be done? |
Date: |
Wed, 24 Jun 2015 09:37:42 +0300 |
On Tue, Jun 23, 2015 at 8:35 PM, Luc Van Rompaey
<address@hidden> wrote:
>
> Make console driver export pointer to a table. This will make it
> possible for console driver to work without your module but provides
> access to this table if needed.
>
> Of course console driver will need to cope with NULL pointer (or
> initialize table to something meaningful).
>
> Hmmm... I think this is the one thing that I have not yet tried.
> If I understand correctly, I would then have to create a an EXPORT_VAR
> pointer variable in the console module, and let my 'setkey' module store the
> appropriate value into it.
> The function to remap an input key, according to the contents of the table,
> would then be a part of the console driver.
It can also be a function pointer. So code in console driver would reduce to
if (grub_setkey_xlat)
grub_setkey_xlat(...)
- Accessing external code or data from the 'console' kernel module: Can it be done?, Luc Van Rompaey, 2015/06/22
- Re: Accessing external code or data from the 'console' kernel module: Can it be done?, Andrei Borzenkov, 2015/06/23
- Re: Accessing external code or data from the 'console' kernel module: Can it be done?, Luc Van Rompaey, 2015/06/23
- Re: Accessing external code or data from the 'console' kernel module: Can it be done?,
Andrei Borzenkov <=
- Re: Accessing external code or data from the 'console' kernel module: Can it be done?, Luc Van Rompaey, 2015/06/25
- Re: Accessing external code or data from the 'console' kernel module: Can it be done?, Luc Van Rompaey, 2015/06/25
- Re: Accessing external code or data from the 'console' kernel module: Can it be done?, Andrei Borzenkov, 2015/06/26
- Re: Accessing external code or data from the 'console' kernel module: Can it be done?, Luc Van Rompaey, 2015/06/29
- Re: Accessing external code or data from the 'console' kernel module: Can it be done?, Andrei Borzenkov, 2015/06/29
- Re: Accessing external code or data from the 'console' kernel module: Can it be done?, Luc Van Rompaey, 2015/06/29