libkeymap  2.4.0
Library to manage the Linux keymaps
Macros | Functions
kernel.h File Reference

Functions for loading objects into the kernel. More...

#include <keymap/context.h>

Go to the source code of this file.

Macros

#define __attribute__(x)   /*NOTHING*/
 

Functions

int lk_kernel_keymap (struct lk_ctx *ctx, int console) __attribute__((nonnull(1)))
 
int lk_kernel_keys (struct lk_ctx *ctx, int console) __attribute__((nonnull(1)))
 
int lk_kernel_funcs (struct lk_ctx *ctx, int console) __attribute__((nonnull(1)))
 
int lk_kernel_diacrs (struct lk_ctx *ctx, int console) __attribute__((nonnull(1)))
 

Detailed Description

Functions for loading objects into the kernel.

Macro Definition Documentation

#define __attribute__ (   x)    /*NOTHING*/

Function Documentation

int lk_kernel_keymap ( struct lk_ctx *  ctx,
int  console 
)

Loads keymap into the kernel. This is a high-level function that calls lk_kernel_keys, lk_kernel_funcs and lk_kernel_diacrs.

Parameters
ctxis a keymap library context.
consoleis open file descriptor.
Returns
0 on success, -1 on error.
int lk_kernel_keys ( struct lk_ctx *  ctx,
int  console 
)

Loads keycodes into the kernel.

Parameters
ctxis a keymap library context.
consoleis open file descriptor.
Returns
0 on success, -1 on error.
int lk_kernel_funcs ( struct lk_ctx *  ctx,
int  console 
)

Loads function keys into the kernel.

Parameters
ctxis a keymap library context.
consoleis open file descriptor.
Returns
0 on success, -1 on error.
int lk_kernel_diacrs ( struct lk_ctx *  ctx,
int  console 
)

Loads accent table into the kernel.

Parameters
ctxis a keymap library context.
consoleis open file descriptor.
Returns
0 on success, -1 on error.