Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

dzÎölinuxϼüÅÌÉ豸¹¤×÷ºÍ×¢²áÁ÷³Ì

dzÎölinuxϼüÅÌÉ豸¹¤×÷ºÍ×¢²áÁ÷³Ì
¡¾Ç³ÎölinuxÏÂÊó±êÇý¶¯µÄʵÏÖ¡¿
 input_init()=>
=>
class_register(&input_class);×¢²áinputÀà
input_proc_init();´´½¨procϵÄĿ¼ºÍÎļþ
register_chrdev(INPUT_MAJOR, "input", &input_fops);×¢²áÇý¶¯³ÌÐòµ½cdev_mapÉÏ,ÒÔ´ýÇý¶¯É豸.
drivers\input\keyboard\pxa3xx_keypad.cΪÎÒÃǵÄkeyboardÉ豸,
pxa3xx_keypad_probe=>
request_irq(IRQ_ENHROT, &enhanced_rotary_interrupt,
            IRQF_DISABLED, "Enhanced Rotary", (void *)keypad);×¢²á¿ì½Ý¼üÖжÏ
request_irq(IRQ_KEYPAD, pxa3xx_keypad_interrupt, IRQF_DISABLED,pdev->name, keypad);×¢²áÖжÏ
static irqreturn_t pxa3xx_keypad_interrupt(int irq, void *dev_id)
{
    struct pxa3xx_keypad *keypad = dev_id;
    uint32_t kpc = keypad_readl(KPC);
    if (kpc & KPC_MI)
        pxa3xx_keypad_scan_matrix(keypad);
    if (kpc & KPC_DI)
        pxa3xx_keypad_scan_direct(keypad);
    return IRQ_HANDLED;
}
ÔÚirqÖÐÈç¹û¶Áµ½ÁËkey,ÄÇô»áÖ±½Óµ÷ÓÃ
input_report_key(keypad->input_dev,lookup_matrix_keycode(keypad, row, col),
                new_state[col] & (1 << row));
static inline unsigned int lookup_matrix_keycode(
        struct pxa3xx_keypad *keypad, int row, int col)
{
    return keypad->matrix_keycodes[(row << 3) + col];
}
input_report_key(struct input_dev *dev, unsigned int code, int value)
devΪinput_devÉ豸,ÎÒÃǵÄ4*4¼üÅÌ
codeΪ±ê×¼PC¼üÅÌÂëÖµ
valueΪ°´¼ü¶¯×÷,Ϊ1±íʾ¼üÅÌ°´ÏÂ,Ϊ0±íʾ°´¼ü̧Æð
static inline void input_report_key(struct input_dev *dev, unsigned int code, int value)
{
    input_event(dev, EV_KEY, code, !!value);
}
void inp


Ïà¹ØÎĵµ£º

mysqlÔÚºìÆìlinuxÏÂÈ«³Ì°²×°ÅäÖÃÏé½â

1¡¢ÏÂÔØMySQLµÄ°²×°Îļþ
°²×°MySQLÐèÒªÏÂÃæÁ½¸öÎļþ£º
MySQL-server-5.0.46.i386.rpm¡¡¡¡¡¡
MySQL-client-5.0.46.i386.rpm

2¡¢°²×°MySQL
rpmÎļþÊÇRed Hat¹«Ë¾¿ª·¢µÄÈí¼þ°²×°°ü£¬rpm¿ÉÈÃLinuxÔÚ°²×°Èí¼þ°üʱÃâ³ýÐí¶à¸´ÔÓµÄÊÖÐø¡£¸ÃÃüÁîÔÚ°²×°Ê±³£ÓõIJÎÊýÊÇ
ivh
,ÆäÖÐi±íʾ½«°²×°Ö¸¶¨µÄrmpÈí¼þ°ü£¬V±í ......

Mysql for linux mysql×Ô¶¯±¸·Ý½Å±¾

¿ÉÒÔ½«Õâ¸ö½Å±¾·Å½øcrontab£¬ËûµÄÅäÖÆÎļþÔÚ /etc/crontabÖÐÿÌìÁ賿ִÐÐÒ»´Î£¬×Ô¶¯±¸·Ý Õâ¸ö½Å±¾Ã¿Ìì×î¶àÖ»Ö´ÐÐÒ»´Î£¬¶øÇÒÖ»±£Áô×î½üÎåÌìµÄ±¸·ÝÔÚ·þÎñÆ÷ÉÏ¡£
#!/bin/bash
#This is a ShellScript For Auto DB Backup
#Powered by aspbiz
#2004-09
#Setting
#ÉèÖÃÊý¾Ý¿âÃû£¬Êý¾Ý¿âµÇ¼Ãû£¬ÃÜÂ룬±¸·Ý·¾¶£¬ÈÕ־ ......

linuxÄÚºËÄ£¿éºÍÇý¶¯³ÌÐòµÄ±àд

linuxÖеĴ󲿷ÖÇý¶¯³ÌÐò,ÊÇÒÔÄ£¿éµÄÐÎʽ±àдµÄ.ÕâЩÇý¶¯³ÌÐòÔ´Âë¿ÉÒÔÐ޸ĵ½ÄÚºËÖÐ,Ò²¿ÉÒÔ°ÑËûÃDZàÒë³ÉÄ£¿éÐÎÊÆ,ÔÚÐèÒªµÄʱºò¶¯Ì¬¼ÓÔØ.
Ò»¸öµäÐ͵ÄÇý¶¯³ÌÐò,´óÌåÉÏ¿ÉÒÔ·ÖΪÕâô¼¸¸ö²¿·Ö:
1¡¢×¢²áÉ豸
ÔÚϵͳ³õÆô,»òÕßÄ£¿é¼ÓÔØʱºò,±ØÐ뽫É豸µÇ¼Çµ½ÏàÓ¦µÄÉ豸Êý×é,²¢·µ»ØÉ豸µÄÖ÷Çý¶¯ºÅ,ÀýÈç:¶Ô¿ìÉ豸À´Ëµµ÷ÓÃrefister_b ......

LinuxÎļþÄÚÈݲéѯÃüÁת£©

grep¡¢fgrepºÍegrepÃüÁî
Õâ×éÃüÁîÒÔÖ¸¶¨Ä£Ê½ËÑË÷Îļþ£¬²¢Í¨ÖªÓû§ÔÚʲôÎļþÖÐËÑË÷µ½ÓëÖ¸¶¨µÄģʽƥÅäµÄ×Ö·û´®£¬²¢´òÓ¡³öËùÓаüº¬¸Ã×Ö·û´®µÄÎı¾ÐУ¬ÔÚ¸ÃÎı¾ÐеÄ×îÇ°ÃæÊǸÃÐÐËùÔÚ µÄÎļþÃû¡£grepÃüÁîÒ»´ÎÖ»ÄÜËÑË÷Ò»¸öÖ¸¶¨µÄģʽ£»egrepÃüÁî¼ìË÷À©Õ¹µÄÕýÔò±í´ïʽ£¨°üÀ¨±í´ïʽ×éºÍ¿ÉÑ¡Ï£»fgrepÃüÁî¼ìË÷¹Ì¶¨×Ö·û´®£¬Ëü²» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ