linuxÈçºÎ¶¯Ì¬¼ÓÔض¯Ì¬¿â
1.¶¨Ò庯ÊýÖ¸ÕëÀàÐÍ
Òª¸ù¾Ý¶¯Ì¬¿âÖÐҩʹÓõĺ¯Êý£¬ÔÚÍâÃ涨ÒåͬÑùÀàÐ͵ĺ¯ÊýÖ¸ÕëÀàÐÍ£¬¹©ÒÔºóʹÓÃ
typedef unsigned long(*POpenDev)(IN unsigned long int);
2. ¶¨Ò庯ÊýÖ¸Õë
POpenDev OpenDev;
3.¶¯Ì¬¼ÓÔض¯Ì¬¿â
HANDLE sohandle = NULL;
sohandle = dlopen("libNiKeyDll.so", RTLD_NOW);
if(NULL != sohandle)
{
fprintf(stderr, "%s\n", dlerror());
}
4.»ñÈ¡º¯ÊýµØÖ·
OPenDev = (POpenDev)dlsym(sohandle, "Opendev");
Opendev Ϊ¶¯Ì¬¿âÄڵĺ¯ÊýÃû£¬ OPenDevΪ»òµÃµÄOpendevµÄº¯ÊýµØÖ·£¬ÒÔºó¿ÉÒÔͨ¹ýOPenDevʹÓÃOpendevº¯Êý¡£
Ïà¹ØÎĵµ£º
Shell±¾ÉíÊÇÒ»¸öÓÃCÓïÑÔ±àдµÄ³ÌÐò£¬ËüÊÇÓû§Ê¹ÓÃLinuxµÄÇÅÁº¡£Shell¼ÈÊÇÒ»ÖÖÃüÁîÓïÑÔ£¬ÓÖÊÇÒ»ÖÖ³ÌÐòÉè¼ÆÓïÑÔ¡£×÷ΪÃüÁîÓïÑÔ£¬Ëü½»»¥Ê½µØ½âÊͺÍÖ´ÐÐÓû§ÊäÈëµÄÃüÁ×÷Ϊ³ÌÐòÉè¼ÆÓïÑÔ£¬Ëü¶¨ÒåÁ˸÷ÖÖ±äÁ¿ºÍ²ÎÊý£¬²¢ÌṩÁËÐí¶àÔڸ߼¶ÓïÑÔÖвžßÓеĿØÖƽṹ£¬°üÀ¨Ñ»·ºÍ·ÖÖ§¡£ËüËäÈ»²»ÊÇLinuxϵͳºËÐĵÄÒ»²¿·Ö£¬µ«Ë ......
Linux kernel ¹ØÓÚkeyboard²¿·Ö
keyboard.c ÓÃÓÚ´¦ÀíºÍ¼üÅÌÏà¹ØµÄinput_handler¡£ÆäÖаüÀ¨ºóÐøµÄ¼üÂëת»»ºÍÊä³ö
atkbd.c ³£ÓõļüÅ̲¼¾Ö£¬ÓÃÓÚ»ñµÃɨÃèÂ룬²¢½«Æä·¢Ë͵½input_handler Á´±íÖÐ
struct input_handler kbd_handler; ¼´Îªinput_handler Á´±íÖеÄÒ»¸öhandler
Òªhook¼üÅÌ»òÕßÆäËûinput²ãϵÄÉ豸ÐÅÏ¢£¬¾ ......
Èç¹ûÊÇÒÔtarballÐÎʽ°²×°°²×°£¬È¥rar
ÍøÕ¾ÏÂÔØÏàÓ¦°æ±¾µÄtarball¡£µØַΪ
http://www.rarlab.com/
ÒÔ3.8°æ±¾ÎªÀý£¬Èç¹ûÊÇi386µÄƽ̨,Ö´ÐÐÒÔÏÂÃüÁ
$wget http://www.rarlab.com/rar
/rarlinux-3.8.0.tar.gz
rar
Èí¼þ²»ÐèÒª°²×°£¬Ö±½Ó½âѹµ½/usr/localÏ£¬ÒÔϲÙ×÷ÐèÒªÓÐroot
ȨÏÞ¡£
#tar zxvf rarlinux-3.8.0 ......
¶ÔÓںܶàÆÕͨÓû§À´ËµLinuxÊÇÉñÃصģ¬ºÜ¶àÅóÓÑ´Ó½Ó´¥PC¿ªÊ¼½Ó´¥µÄ¾ÍÊÇwindow£¬Ò»ÇÐÏ°¹ß¶¼Ô´ÓÚwindow£¬ÅóÓÑLinuxϵͳ¼¸ºõÊøÊÖÎ޲ߣ¨±ÊÕß»ù±¾¾ÍÕâÑù£¬ËùÒÔÔÚŬÁ¦Ñ§Ï°ing…£©£¬ÄÇôLinuxµ½µ×ÄÜ×öЩʲô£¬ÓÖÓÐʲôÓÃ;ÄØ£¿ÈÃÎÒÃÇÀ´Ò»Ì½¾¿¾¹¡£ÊÀ½çÉÏ×î´óµÄ¼¼ÊõÖ§³Ö¡¢Èí¼þºÍÓ²¼þ¹«Ë¾Ã¿ÌìÊ¹Ó ......