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

linux uinput ·ÖÎö¡£

linux uinput
±¾ÎÄÒÔ 2.6.22.7 µÄkernel Ϊ»ù´¡¡£
Ê×ÏÈ uinput ÊÇÒ»¸ö×Ö·ûÉ豸£¬ Æä´ÎËü»¹ÊÇÒ»¸ö input É豸¡£ÁíÍâËü¿ÉÒÔÊÇÒ»¸öÊó±ê»òÕß¼üÅÌÉ豸¡£
´Ó init ²¿·Ö˵Æð°É¡£
static const struct file_operations uinput_fops = {
    .owner        = THIS_MODULE,
    .open        = uinput_open,
    .release    = uinput_release,
    .read        = uinput_read,
    .write        = uinput_write,
    .poll        = uinput_poll,
    .unlocked_ioctl    = uinput_ioctl,
};
static struct miscdevice uinput_misc = {
    .fops        = &uinput_fops,
    .minor        = UINPUT_MINOR,
    .name        = UINPUT_NAME,
};
static int __init uinput_init(void)
{
    return misc_register(&uinput_misc);
}
Ê×ÏÈ˵˵ miscdevice, ºÜ·½±ãµÄ¶«Î÷£¬¶Ô device ×öÁ˼òµ¥µÄ°ü×°£¬
µ± misc_register µÄʱºò¾ÍÍê³ÉÁË É豸µÄ ×¢²á°²×°Ò»ÀàµÄ¶«¶«£¬ ²»ÓÃ×Ô¼ºÔÙ²ÙÐÄÁË¡£ÕæÊÇÀÁÈ˵ÄÉè¼Æ°¢¡£
ËùÓÐµÄ misc É豸¹«ÓÃͬһ¸öÖ÷É豸ºÅ£¬ÔÚ misc_init ÖУ¬
static int __init misc_init(void)
{
#ifdef CONFIG_PROC_FS
    struct proc_dir_entry *ent;
    ent = create_proc_entry("misc", 0, NULL);
    if (ent)
        ent->proc_fops = &misc_proc_fops;
#endif
    misc_class = class_create(THIS_MODULE, "misc");
    if (IS_ERR(misc_class))
        return PTR_ERR(misc_class);
    if (register_chrdev(MISC_MAJOR,"misc",&misc_fops)) {
        printk("unable to get major


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

linuxϽâѹÃüÁî´óÈ«

.tar
½â°ü£ºtar xvf FileName.tar
´ò°ü£ºtar cvf FileName.tar DirName
£¨×¢£ºtarÊÇ´ò°ü£¬²»ÊÇѹËõ£¡£©
———————————————
.gz
½âѹ1£ºgunzip FileName.gz
½âѹ2£ºgzip -d FileName.gz
ѹËõ£ºgzip FileName
.tar.gz ºÍ ......

Linux ÏÂphpÀ©Õ¹ tidy µÄ°²×° _ ²Î¿¼

tidy ÊÇÒ»¸ö·Ç³£°ïæµÄÍøÒ³´úÂë·ÖÎöºÍ¾À´íµÄ¹¤¾ß£¬Äܹ»Ö§³Ö¶àÖÖÒ³Ãæ±àÂ룬²¢ÇÒÖ§³ÖxhtmlÊä³ö¡£Èç¹ûÎÒÃÇ͵ÀÁ£¬ÉõÖÁ¿ÉÒÔ½«Õû¸öÒ³Ã滺´æ£¬×îºó²ÉÓÃtidy´¦Àí£¬×îºóÊä³öÍêÃÀµÄxhtml´úÂë¡£
linuxÏ°²×°¹ý³ÌÈçÏ£º
Ê×ÏÈ°²×°tidy £¬ÏÂÔØtidyÔ´´úÂ룺
cvs -d:pserver: anonymous@tidy.cvs.sourceforge.net Ϊ·À±¸µç×ÓÓʼþµØÖ·ÊÕ¼¯ ......

LinuxϵÄC±à³Ìʵս֮Îļþϵͳ±à³Ì

1.LinuxÎļþϵͳ
¡¡¡¡Linux
Ö§
³Ö¶àÖÖÎļþϵͳ£¬Èçext¡¢ext2¡¢minix¡¢iso9660¡¢msdos¡¢fat¡¢vfat¡¢nfsµÈ¡£ÔÚÕâЩ¾ßÌåÎļþϵͳµÄÉϲ㣬LinuxÌṩ
ÁËÐéÄâÎļþϵͳ£¨VFS£©À´Í³Ò»ËüÃǵÄÐÐΪ£¬ÐéÄâÎļþϵͳΪ²»Í¬µÄÎļþϵͳÓëÄں˵ÄͨÐÅÌṩÁËÒ»ÖµĽӿڡ£ÏÂͼ¸ø³öÁËLinuxÖÐÎļþϵͳµÄ¹Øϵ£º
¡¡¡¡ÔÚLinuxƽ̨϶ÔÎļþ±à³Ì¿É ......

LinuxÄÚºËÅäÖÃϵͳdzÎö

1£® ÅäÖÃϵͳµÄ»ù±¾½á¹¹
LinuxÄں˵ÄÅäÖÃϵͳÓÉÈý¸ö²¿·Ö×é³É£¬·Ö±ðÊÇ£º
Makefile£º·Ö²¼ÔÚ Linux ÄÚºËÔ´´úÂëÖÐµÄ Makefile£¬¶¨Òå Linux Äں˵ıàÒë¹æÔò£»
ÅäÖÃÎļþ£¨config.in£©£º¸øÓû§ÌṩÅäÖÃÑ¡ÔñµÄ¹¦ÄÜ£»
ÅäÖù¤¾ß£º°üÀ¨ÅäÖÃÃüÁî½âÊÍÆ÷£¨¶ÔÅäÖýű¾ÖÐʹÓõÄÅäÖÃÃüÁî½øÐнâÊÍ£©ºÍÅäÖÃÓû§½çÃ棨Ìṩ»ùÓÚ×Ö·û½çÃæ¡¢» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ