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

LinuxÉ豸Çý¶¯³ÌÐòѧϰ֮É豸ģÐͶþ


LinuxÉ豸Çý¶¯³ÌÐòѧϰ±Ê¼ÇϵÁÐÎÄÕÂÔ­×÷ÕßÊÇ£ºTekkaman Ninja£¬Ëû²©¿ÍµØÖ·£º
http://blog.chinaunix.net/u1/34474/showart_404278.html
ÔÚ´ËÏòTekkaman Ninja±íʾ¸Ðл£¬Ð´³öÕâôºÃµÄÎÄÕ£¬Ê¹ÎÒÉÙ×ßÁ˺ܶàÍä·¡£
ͨ¹ýÒ»¸öÉ豸ÔÚÄÚºËÖÐÉúÃüÖÜÆڵĸ÷¸ö½×¶Î£¬¿ÉÒÔ¸üºÃµØÀí½âLinuxÉ豸ģÐÍ¡£ÎÒ½«Í¨¹ý·ÖÎölddbusºÍsculldµÄÔ´ÂëÀ´Á˽âLinuxÉ豸ģÐÍÖи÷»·½ÚµÄÕûºÏ¡£¡¶LDD3¡·Öеģ¨PCI×ÜÏߣ©¸÷»·½ÚµÄÕûºÏÕⲿ·ÖÄÚÈÝ×÷Ϊ²Î¿¼×ÊÁÏ£¬ÒòΪǶÈëʽLinux±È½ÏÉÙÓõ½PCI×ÜÏß¡£¿´Õⲿ·ÖÄÚÈÝÒ»¶¨ÒªÏÈÊìϤһÏ lddbus ºÍ sculld µÄÔ´Âë¡£
 
Ò»¡¢lddbusÄ£¿é£ºÌí¼Ó×ÜÏß¡¢µ¼³ö×ÜÏßÉ豸ºÍÉ豸Çý¶¯µÄ×¢²áº¯Êý¡£
lddbus×ÓϵͳÉùÃ÷ÁËÒ»¸öbus_type½á¹¹£¬³ÆΪldd_bus_type ¡£Ô´ÂëÊÇÔÚ±àÒëʱ³õʼ»¯ÁËÕâ¸ö½á¹¹Ì壬ԴÂ룺
/*
 * And the bus type.
 */
struct bus_type ldd_bus_type = {
    .name = "ldd",
    .match = ldd_match,
    .uevent  = ldd_uevent,
};
ÔÚ½«lddbus×ÓϵͳװÔص½Äں˺ʹÓÄÚºËжÔصÄÔ´ÂëÈçÏ£º
static int __init ldd_bus_init(void)
{
    int ret;
    ret = bus_register(&ldd_bus_type); /*×¢²á×ÜÏߣ¬ÔÚµ÷ÓÃÕâ¸öº¯ÊýÖ®ºóldd_bus_type ½á¹¹Ì彫ÏòÄÚºË×¢²á£¬ÔÚ/sys/busÖгöÏÖlddÎļþ¼Ð£¬ÆäÖаüº¬Á½¸öĿ¼£ºdevices ºÍ drivers */
    if (ret)
        return ret;
    if (bus_create_file(&ldd_bus_type, &bus_attr_version)) /*Ìí¼Ó×ÜÏßÊôÐÔ,½«ÔÚ/sys/bus/lddĿ¼ÖгöÏÖversionÊôÐÔÎļþ*/
        printk(KERN_NOTICE "Unable to create version attribute ! \n");
    ret = device_register(&ldd_bus);/*½«×ÜÏß×÷ΪÉ豸ע²á¡£ÒòΪ×ÜÏßÒ²¿ÉÒÔÊÇÒ»¸öÉ豸£¬±ÈÈçÔÚS3C2440ÖÐSPI×ÜÏß¿ØÖÆÆ÷Ïà¶ÔÓÚARM920TºËÐÄÀ´Ëµ£¬Æäʵ¾ÍÊÇÒ»¸öÍâÉè¡£µ÷Óô˺¯Êýºó£¬¾Í»áÔÚ/sys/devicesÖгöÏÖldd0Ŀ¼*/
    if (ret)
        printk(KERN_NOTICE "Unable to register ldd0 ! \n");
    
    printk(KERN_NOTICE "Mount lddbus ok


Ïà¹ØÎĵµ£º

¿Æ¼¼²¿·¢Ð¹棬LinuxµÄ´ºÌìµ½ÁË






<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
    4
ÔÂ
10
ÈÕ£¬¿Æ¼¼²¿¾Í“¹ú¼Ò×ÔÖ÷´´Ð²úÆ·È϶¨¹¤×÷”·¢³ö֪ͨ£¬¹«¿ªÕ÷ÇóÒâ¼û£¬ÆäÖеÄ
Ö¸µ¼Ë¼ÏëÓÐÖØ´óÍ»ÆÆ¡£¾ßÌåÇé¿öÈçºÎ£¿
 
    2009
Äê
10
ÔÂ
30
ÈÕ£¬ÔÚÎÒ¹úÕþ¸® ......

LinuxÉ豸Çý¶¯³ÌÐòѧϰ֮»ù´¡Æª


LinuxÉ豸Çý¶¯³ÌÐòѧϰ±Ê¼ÇϵÁÐÎÄÕÂÔ­×÷ÕßÊÇ£ºTekkaman Ninja£¬Ëû²©¿ÍµØÖ·£º
http://blog.chinaunix.net/u1/34474/showart_404278.html
ÔÚ´ËÏòTekkaman Ninja±íʾ¸Ðл£¬Ð´³öÕâôºÃµÄÎÄÕ£¬Ê¹ÎÒÉÙ×ßÁ˺ܶàÍä·¡£
LinuxÉ豸Çý¶¯³ÌÐòѧϰ£¨0£©£­Hello, world£¡Ä£¿é
ÎÄÕÂÀ´Ô´£ºhttp://blog.chinaunix.net/u2/62910/showa ......

ITÊ®´óÓ¢ÐÛ LinuxÖ®¸¸Æ»¹û´´Ê¼ÈËÉÏ°ñ


¡¡¡¡4ÔÂ13ÈÕÏûÏ¢£¬¾Ý¹úÍâýÌ屨µÀ£¬Ó¢¹úITÍøÕ¾VnunetÁ½ÖÜÇ°ÆÀ³öÁË“ITÊг¡10´ó¶ñ¹÷”£¬ÈÕÇ°£¬VnunetÓÖÆÀ³öÁË“ITÊг¡10´óÓ¢ÐÛ”£¬LinuxÖ®¸¸ÀîÄÉ˹·ÍÐÎÖ×È(Linus Torvalds)ºÍÆ»¹ûÁªºÏ´´Ê¼ÈËÊ·µÙ·ò·ÎÖ×ÈÄáÑÇ¿Ë(Steve Wozniak)µÈ·×·×ÉÏ°ñ¡£
¡¡¡¡ÕâÀïËùνµÄ“Ó¢ÐÛ”²¢²»ÊÇÖ¸Óж ......

LinuxÉ豸Çý¶¯³ÌÐòѧϰ֮ÍâÉèͨÐÅ


ÔÚѧϰÓйØI/O×ÜÏßµÄÄÚÈÝʱ£¬×îºÃÏÈ¿´¿´Ïà¹ØµÄ֪ʶ£º´ÓPC×ÜÏßµ½ARMµÄÄÚ²¿×ÜÏß
I/O ¶Ë¿ÚºÍ I/O ÄÚ´æ
ÿÖÖÍâÉ趼ÊÇͨ¹ý¶Áд¼Ä´æÆ÷À´½øÐпØÖÆ¡£
ÔÚÓ²¼þ²ã£¬ÄÚ´æÇøºÍ I/O ÇøÓòûÓиÅÄîÉϵÄÇø±ð: ËüÃǶ¼ÊÇͨ¹ýÏòÔÚµØÖ·×ÜÏߺͿØÖÆ×ÜÏß·¢³öµçƽÐźÅÀ´½øÐзÃÎÊ£¬ÔÙͨ¹ýÊý¾Ý×ÜÏ߶ÁдÊý¾Ý¡£
ÒòΪÍâÉèÒªÓëI\O×ÜÏßÆ¥Å䣬¶ø´ó²¿·ÖÁ ......

linuxѧϰ ÔËÐÐʱȷ¶¨³ÌÐò³ö´íµÄλÖÃ

       Ê×ÏÈ£¬ÔÚ±àÒë³ÌÐòʱ£¬Ôö¼Ó-gÑ¡ÏʹִÐÐÎļþ°üº¬·ûºÅÐÅÏ¢¡£Æä´Î£¬ÔÚ³ÌÐò¿ªÊ¼ÔËÐÐʱ£¬µ÷ÓÃapiº¯ÊýÉèÖÃÐźŴ¦Àíº¯Êý(Èçsignal(), sigaction()µÈ)£¬ÓÃÀ´´¦Àí¸÷ÖÖÐźš£ÀýÈç³ÌÐò·¢Éú”³ý0´íÎó”ʱ£¬¾Í»á·¢³öÒ»ÖÖÐźš£×îºó£¬Íê³ÉÒ»¸öº¯Êý¶ÑÕ»Êä³öº¯Êý¡£ÓÃbacktrack()»ñÈ¡º¯Êýµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ