dzÎölinux¼üÅÌÉ豸¹¤×÷ºÍ×¢²áÁ÷³Ì
£¨1£©ÔÚ\drivers\input\Input.cÖС£
A£¬subsys_initcall(input_init);
B£¬static int __init input_init(void)ÖÐÍê³É¼¸¸öÖØÒªµÄ²Ù×÷£º
err = class_register(&input_class);ÒÔÊäÈëÀ෽ʽע²áÀà
input_proc_init(); //´´½¨procϵÄĿ¼ºÍÎļþ
register_chrdev(INPUT_MAJOR, "input", &input_fops); //×¢²á×Ö·ûÉ豸Çý¶¯³ÌÐòµ½ÄÚºË
£¨2£©ÔÚdrivers\input\keyboard\S3c-keypad.cÖУ¬ÊÇ×Ô¼ºµÄ°´¼ü´¦ÀíÎļþ¡£
A£¬¶¨Ò司androidÉϲãµÄÂëÖµ
#define KEYCODE_HOME 58
#define KEYCODE_POWER 50
struct s3c_keypad_gpio_key gpio_key_smdk6410[] = {
{IRQ_EINT(6), S3C64XX_GPN(6), 2, KEYCODE_POWER, 1},
{IRQ_EINT(7), S3C64XX_GPN(7), 2, KEYCODE_HOME, 1},
};
·Ö±ðÊÇÍⲿÖжϺţ¬GPIO¿ÚºÅ£¬ÂëÖµ¡£
B£¬probe¹ý³Ì£º
module_init(s3c_keypad_init); //°´¼üinit
platform_driver_register(&s3c_keypad_driver); //×¢²áƽ̨Çý¶¯
s3c_keypad_driverµÄprobeº¯ÊýÊÇÖ÷Òª´¦Àí¹ý³Ì£º
static int __init s3c_keypad_probe(struct platform_device *pdev)
{
struct input_dev *input_dev; //×¢²áÒ»¸öÊäÈëÉ豸
platform_get_resource(pdev, IORESOURCE_MEM, 0);
request_mem_region(res->start, size, pdev->name);
ioremap(res->start, size); //·ÖÅä×ÊÔ´
keypad_clock = clk_get(&pdev->dev, "keypad");
clk_enable(keypad_clock); //»ñµÃkeypadµÄclock
set_bit(EV_KEY, input_dev->evbit); //±êÖ¾input_devÊÇKEYÉ豸
s3c_gpio_cfgpin(gpio_key->gpio, S3C_GPIO_SFN(gpio_key->gpio_af));
Ïà¹ØÎĵµ£º
´´½¨×ÀÃæÍ¼±ê
Ŀǰ½«ÍøÂçÓ¦ÓÃÀ©Õ¹µ½×ÀÃæÊÇÒ»¸öÇ÷ÊÆ£¬´æÔÚןܶà½â¾ö·½°¸£¬±¾ÎÄÒÔ Mozilla Prism ΪÀý£¬ÀàËÆµÄ·½·¨Í¬ÑùÊÊÓÃÓÚ Google Chrome ¡£
1. µ½ Mozilla Prism µÄÍøÕ¾ÉÏÏÂÔØ Prism£¬µã»÷ Download Now Ö®ºó»áÌáʾÓÐÁ½ÖÖ£¬Ò»ÖÖÊÇÒÔ Mozilla Firefox À©Õ¹µÄ·½Ê½£¬ÊʺÏÒѾ°²×°ÓÐ Firefox µÄÅóÓÑ£»Ò»Ö ......
3. ÍøÂçÅäÖÃÎļþ
3.1 /etc/hosts
#/etc/hosts
#Îļþ¸ñʽ: IPaddress hostname aliases
#Îļþ¹¦ÄÜ: ÌṩÖ÷»úÃûµ½IPµØÖ·µÄ¶ÔÓ¦¹ØÏµ£¬½¨Ò齫×Ô¼º¾³£Ê¹ÓõÄÖ÷»ú
# ¼ÓÈë´ËÎļþÖУ¬Ò²¿É½«Ã»ÓÐDNS¼Ç¼µÄ»úÆ÷¼ÓÈëµ½´ËÎļþÖУ¬
# ÕâÑù»á·½±ãÍøÂçÓ¦ÓÃ
127.0.0.1 localhost localhost.localdomain
202.118.66.81 helius.dlut. ......
£¨1£©
linuxϵÄÅú´¦ÀíÎļþ£¬»ù±¾¾ÍÊÇshell½Å±¾Îļþ¡£
1.Ò»¸ö×î¼òµ¥µÄ½Å±¾Êéд·½·¨Îª£º
н¨Ò»¸öÎļþ£¬Ãû×ÖΪclean(×Ô¼º¶¨ÒåµÄÃû×Ö)£¬ÔÚÀïÃæ±àд
rm -fv *.o;ls -al;
(¿ÉÒÔдһЩshellÆÕͨÃüÁÃüÁîÓ÷ֺŸô¿ª)
2.Ö´Ðз½·¨
(1)ÔÚ¿ØÖÆÌ¨ÊäÈ룺
sh clean
(2)ÏȸøÓë½Å±¾¿ÉÖ´ÐÐȨÏÞ£º
......
µÚÒ»´ÎÔÚLinuxÉϰ²×°OracleµÄʱºòÅöµ½Õâ¸öÎÊÌ⣬ºÇºÇ¡£Ö®Ç°ÔÚLinuxÉϰ²×°Oracleʱ£¬Ò»°ã¶¼Ê¹ÓÃRedHatϵÁеÄLinux£¬ÔÚ°²×°¹ý³ÌÖУ¬ÐèÒª×ö´óÁ¿µÄ°²×°Ç°Öù¤×÷£¬Èç°²×°RPM°ü£¬´´½¨×éºÍÓû§£¬ÐÞ¸ÄÄں˲ÎÊý£¬Ð޸Ļ·¾³±äÁ¿µÈ¡£Õâ´ÎʹÓõÄÊÇRedFlagµÄAsianux 3£¬¶øÇÒ×Ô´øOracleµÄ°²×°¸¨Öú¹¤¾ßOrana ......
Linux µÄ Input Device ÊÇÖØÒªµÄÒ»個 subsystem£¬ÔÚ進ÐÐ實Àý½é紹ǰ£¬ÏÈ´óÂÔÁ˽âÒ»ÏÂÏà關µÄ API¡£input.cÊÇLinuxµÄÊäÈë驅動³Ìʽ£¬Ö÷ÒªÖ§Ô®鍵盤與»¬ÊóµÄ輸È룻input.c½éÃæÌØÊâµÄµØ·½ÊÇ採ÓÃÁËʼþ£¨event£©µ ......