ReactOS  0.4.14-dev-552-g2fad488
nls_big5.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/nls.h>
#include <linux/errno.h>
Include dependency graph for nls_big5.c:

Go to the source code of this file.

Functions

static int __init init_nls_big5 (void)
 
static void __exit exit_nls_big5 (void)
 

Variables

static struct nls_tablep_nls
 
static struct nls_table table
 

Function Documentation

◆ exit_nls_big5()

static void __exit exit_nls_big5 ( void  )
static

Definition at line 37 of file nls_big5.c.

38 {
41 }
int unregister_nls(struct nls_table *)
Definition: nls_base.c:185
void unload_nls(struct nls_table *)
Definition: nls_base.c:240
static struct nls_table * p_nls
Definition: nls_big5.c:11

Referenced by RfsdUnloadAllNls().

◆ init_nls_big5()

static int __init init_nls_big5 ( void  )
static

Definition at line 22 of file nls_big5.c.

23 {
24  p_nls = load_nls("cp950");
25 
26  if (p_nls) {
27  table.uni2char = p_nls->uni2char;
28  table.char2uni = p_nls->char2uni;
29  table.charset2upper = p_nls->charset2upper;
30  table.charset2lower = p_nls->charset2lower;
31  return register_nls(&table);
32  }
33 
34  return -EINVAL;
35 }
Definition: arc.h:39
static struct nls_table * p_nls
Definition: nls_big5.c:11
int register_nls(struct nls_table *)
Definition: nls_base.c:162
struct nls_table * load_nls(char *)
Definition: nls_base.c:218

Referenced by RfsdLoadAllNls().

Variable Documentation

◆ p_nls

struct nls_table* p_nls
static

Definition at line 11 of file nls_big5.c.

Referenced by exit_nls_big5(), and init_nls_big5().

◆ table

Initial value:
= {
"big5",
}
#define THIS_MODULE
Definition: module.h:267
smooth NULL
Definition: ftsmooth.c:416

Definition at line 13 of file nls_big5.c.