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

Linux ÄÚºËÈíÖжÏ(softirq)Ö´ÐзÖÎö

Linux ÄÚºËÈíÖжÏ(softirq)Ö´ÐзÖÎö
Author:  sinister
Email:   sinister@whitecell.org
Homepage:http://www.whitecell.org
Date:    2007-01-11
±¾ÎÄ¶Ô Linux ÄÚºËÈíÖжϵÄÖ´ÐÐÁ÷³Ì½øÐÐÁË·ÖÎö£¬²¢¾¡¿ÉÄܵĽáºÏµ±Ç°ÔË
Ðл·¾³ÏêϸµØд³öÎÒµÄÀí½â£¬µ«Õâ²¢²»±íÃ÷ÎÒµÄÀí½âÒ»¶¨ÕýÈ·¡£Õâ±¾ÊÇÂÛ̳
ÀïµÄһƪÌû×Ó£¬·¢³öÀ´ÊÇΪÁËÅ×שÒýÓñ£¬Èç¹ûÄúÔÚÔĶÁ±¾ÎÄʱ·¢ÏÖÁËÎҵĴí
Î󣬻¹ÍûµÃµ½ÄúµÄÖ¸Õý¡£
½ñÌìÎÞÒâÖп´ÁËÑÛ 2.6 Äں˵ÄÈíÖжÏʵÏÖ£¬·¢ÏÖºÍÒÔÇ°ÎÒ¿´µ½µÄ´ó²»Ïàͬ
£¨ÒÔÇ°Ò²ÊÇ×ßÂí¹Û»¨£¬²»´ó×Ðϸ£©£¬¿ÉÒÔ˵¸Ä¶¯ºÜ´ó¡£Á¬ softirq µÄµ÷ÓÃ
µã¶¼²»Ò»ÑùÁË£¬ÒÔÇ°ÊÇÈý¸öµ÷Óõ㣬½ñÌìËÑË÷ÁËÒ»ÏÂÔ´´úÂ룬·¢ÏÖÔÚ¶à³öÁË
ksoftirqd ºó£¬softirq ÔÚϵͳÖеĵ÷Óõã½öÊÇÔÚ ISR ·µ»ØʱºÍʹÓÃÁË
local_bh_enable() º¯Êýºó±»µ÷ÓÃÁË¡£Íø¿¨²¿·ÖµÄÏÔʾµ÷Óã¬ÎÒ¾õµÃÓ¦¸Ã²»
ËãÊÇϵͳÖеĵ÷Óõ㡣ksoftirqd ·µ»ØÈ¥µ÷Óà do_softirq() º¯ÊýÓ¦¸ÃÒ²Ö»
ÄÜËãÊÇÆäÖеÄÒ»¸ö·ÖÖ§£¬ÒòΪÆä±¾Éí´ÓÔ´Í·ÉÏÀ´½²Ò²»¹ÊÇÔÚ ISR ·µ»Øʱ
irq_exit() µ÷Óõġ£ÕâÑùÒ»À´¾ÍºÍǰЩÈÕ×ÓдµÄÄǷݱʼǣ¨Windows/Linux
/Solaris ÈíÖжϻúÖÆ£©Àï½éÉÜµÄ Linux Äں˲¿·ÖµÄÈíÖжÏÓгö´¦ÁË£¬¿´À´
ÒÔºóÌÖÂÛ Linux kernel ´úÂëÒ»¶¨ÒªÒÔÄں˰汾ΪǰÌ⣬Ҫ²»·ÇÂÒÁ˲»¿É¡£
µÃÂò±¾ Linux ·½ÃæµÄÊéÁË£¬Ã¿´ÎÉÏÀ´Ö±½Ó¿´Ïà¹Ø´úÂëÒ²²»ÊÇ»ØÊ£¬Ê±¼äÒ²
²»ÔÊÐí¡£
//
// do_IRQ º¯ÊýÖ´ÐÐÍêÓ²¼þ ISR ºóÍ˳öʱµ÷Óô˺¯Êý¡£
//
void irq_exit(void)
{
    account_system_vtime(current);
    trace_hardirq_exit();
    sub_preempt_count(IRQ_EXIT_OFFSET);
        //
        // Åжϵ±Ç°ÊÇ·ñÓÐÓ²¼þÖжÏǶÌ×£¬²¢ÇÒÊÇ·ñÓÐÈíÖжÏÔÚ
        // pending ״̬£¬×¢Ò⣺ÕâÀïÖ»ÓÐÁ½¸öÌõ¼þͬʱÂú×ã
        // ʱ£¬²ÅÓпÉÄܵ÷Óà do_softirq() ½øÈëÈíÖжϡ£Ò²¾ÍÊÇ
        // ˵ȷÈϵ±Ç°ËùÓÐÓ²¼þÖжϴ¦ÀíÍê³É£¬ÇÒÓÐÓ²¼þÖжϰ²×°ÁË
        // ÈíÖжϴ¦ÀíʱÀíʱ²Å»á½øÈë¡£
        //
    if (!in_interrupt() && local_softirq_pend


Ïà¹ØÎĵµ£º

Linuxѧϰ¼Æ»®

0 Äñ¸çµÄLinux˽·¿²Ë
1 GNU\Linux±à³ÌÖ¸ÄÏ
2 LinuxÉ豸Çý¶¯¿ª·¢Ïê½â.pdf
3 ÉîÈëÀí½âlinuxÄÚºË.pdf
4 Linux_ÄÚºËÍêȫעÊÍ_V11.pdf or Linux_ÄÚºË×¢ÊÍ.pdf
5 LINUXÄÚºËÔ´´úÂëÇé¾°·ÖÎö\scene(ÉÏ).pdf and scene(ÏÂ).pdf
Ä¿Ç°ÒѾ­µ½LinuxÉ豸Çý¶¯¿ª·¢Ïê½â.pdfÁË£¬¶øÇÒ±àÒëÉý¼¶ÄÚºËÒѾ­³É¹¦£¬³õ²½±àдÁ˼òµ¥µÄÄ£¿é¡£ ......

LinuxÄÚºËÉý¼¶(ubuntu+virtual Box)


ÄÚºËÖÕÓÚ±à¹ý²¢ÇÒÉý¼¶ÁË£¬±¾À´´òËã×¥½ô¼ÌÐøÍùÏÂѧϰ¡£µ«ÊÇÔÚÀÏÆŵĹÄÀøÏ£¬¸Ð¾õ»¹ÊÇÍ£ÏÂÀ´×ܽáϱȽϺã¬ÕâÑù¶Ô×Ô¼º¶Ô±ðÈ˶¼ÓÐËù°ïÖú¡£
 
0¡¢»·¾³½éÉÜ
    ÎÒÊÇÔÚVirtualBox-3.1.6-59338-WinµÄÐéÄâ»úÉÏ°²×°ÁËubuntu-9.10-desktop-i386.iso¡£µçÄÔ±¾ÉíÊÇXPϵͳ¡£
    ×¢Ò⣬ÔÚ½øÐÐÏ ......

£¨×ª£©linux¸÷Îļþ¼ÐµÄ×÷ÓÃ

linux
ϵÄÎļþ½á¹¹£¬¿´¿´Ã¿¸öÎļþ¼Ð¶¼ÊǸÉÂðÓõÄ
/bin
¶þ½øÖÆ¿ÉÖ´ÐÐÃüÁî
/dev
É豸ÌØÊâÎļþ
/etc
ϵͳ¹ÜÀíºÍÅäÖÃÎļþ
/etc/rc.d
Æô¶¯µÄÅäÖÃÎļþºÍ½Å±¾
/home
Óû§Ö÷Ŀ¼µÄ»ùµã£¬±ÈÈçÓû§user
µÄÖ÷Ŀ¼¾ÍÊÇ/home/user
£¬¿ÉÒÔÓÃ~user
±íʾ
/lib
±ê×¼³ÌÐòÉè¼Æ¿â£¬Óֽж¯Ì¬Á´½Ó¹²Ïí¿â£¬×÷ÓÃÀàËÆwindows
ÀïµÄ. ......

Redhat Linux AS4 ls Îļþ¼Ð ÑÕÉ«£¨À¶É«£©µÄ ¸Ä±ä·½·¨

Îı¾½çÃæÏ£¬ºìñÓÃÀ¶É«×÷ΪlsµÄĿ¼µÄÑÕÉ«£¬ÅäºÏËûµÄºÚÉ«±³¾°£¬¸Ð¾õÌ«°µÁË£¬¿´²»Çå¡£
¸Ä³É±ðµÄÑÕÉ«µÄ·½·¨£º
Ê×ÏÈ£¬
# vi
/etc/DIR_COLORS
ÄÚµÄÉ趨“DIR 01£»34”£¬ÎªlsÃüÁîµÄĿ¼µÄÑÕÉ«ÉèÖã¬01±íʾ´ÖÌ壬34±íʾ×ÖÌåÀ¶É«¡£
ÎÒ°ÑËü
¸Ä³ÉÁË“DIR 01£»37£»44”£¬37ÊÇ×ÖÌå°×É«£¬44ÊÇ×Ö±³¾°À¶É«£¬ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ