⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nls_tis-620.c

📁 ARM 嵌入式 系统 设计与实例开发 实验教材 二源码
💻 C
字号:
/* * linux/fs/nls_tis-620.c */#include <linux/module.h>#include <linux/kernel.h>#include <linux/string.h>#include <linux/nls.h>#include <linux/errno.h>static struct nls_table *p_nls;static struct nls_table table = {	"tis-620",	NULL,	NULL,	NULL,	NULL,	THIS_MODULE,};static int __init init_nls_tis_620(void){	p_nls = load_nls("cp874");	if (p_nls) {		table.uni2char = p_nls->uni2char;		table.char2uni = p_nls->char2uni;		table.charset2upper = p_nls->charset2upper;		table.charset2lower = p_nls->charset2lower;		return register_nls(&table);	}	return -EINVAL;}static void __exit exit_nls_tis_620(void){	unregister_nls(&table);	unload_nls(p_nls);}module_init(init_nls_tis_620)module_exit(exit_nls_tis_620)MODULE_LICENSE("Dual BSD/GPL");/* * Overrides for Emacs so that we follow Linus's tabbing style. * Emacs will notice this stuff at the end of the file and automatically * adjust the settings for this buffer only.  This must remain at the end * of the file. *--------------------------------------------------------------------------- * Local variables: * c-indent-level: 8 * c-brace-imaginary-offset: 0 * c-brace-offset: -8 * c-argdecl-indent: 8 * c-label-offset: -8 * c-continued-statement-offset: 8 * c-continued-brace-offset: 0 * End: */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -