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

Linux Kernel API (2.6)

#protect share data
spin_lock/spin_unlock: protect the data during process context(and only at process context), and make sure your code bewteen lock/unlock is fast enough.There may deadlock if the same spin_lock is called at interrupt context.
spin_lock_irq/spin_unlock_irq: call it during interrupt context, make sure the irq is on before calling this function, it will disable irq before accessing share data
spin_lock_irqsave/irqrestore: use at interrupt context, and will save/restort irq registers
The code between spin_lock**/spin_unlock** must not sleep.
The spin_lock** API is defined at include/linux/spinlock_api_up.h for UP architecture.
linux/kernel/spinlock.c is only for SMP.
mutex_lock/mutex_unlock: the similar with down/up, but more efficient
mutex_lock_interruptible: the simlilar with down_interruptiable, can be interruptiable by signal.(like CTRL-C)
the code beween mutex_lock and mutex_unlock can go to sleep


Ïà¹ØÎĵµ£º

LinuxÄÚºËÐÞÁ¶Ö®µÀ Ö® ǰÑÔ

ÖÁ´ËÂä±ÊÖ®¼Ê£¬Ç¡ÖÁLinuxÎÊÊÀ18ÖÜÄ꣬18ÄêµÄ³É³¤£¬ÈçÃÎËÆ»Ã£¬·çÓêÆÄ¶à£¬¸Ð¿®ÆÄ¶à¡£
ÓÌ×ÔÒäÆð¶àÄêÒÔǰһλǰ±²Ñµµ¼Ê±µÄóðÑÔ£º½ñÌìµÄ±ØÈ»ÕýÊÇÓÉ֮ǰһϵÁеÄżȻËù¾ö¶¨µÄ¡£¹ýÈ¥µÄijÄêijÔ£¬ÎÒżȻ³õʶLinux¾ÍÉíÏÝÆäÖУ¬ÖÁ½ñÈÔÕÒ²»µ½³öÈ¥µÄ·£¬¶øÕýÊÇÕâ´ÎÄËÖÁÖ®ºóµÄ¶à´ÎżȻÏàÁªºÏ£¬´Ó¶ø¾ö¶¨Á˽ñÈÕµÄÎÒÒªÔÚ´ËдÏÂÕâЩ»°¡£ÄÇô ......

linux svn³£ÓÃÃüÁî

¼ÙÈçÉÏ´«´úÂëµ½SVNÉÏ£¬×î¼òµ¥µÄÒ»ÖÖ·½·¨¾ÍÊÇ£º½øÈë´úÂëĿ¼£¬È»ºó$svn import -m "New import" myqwcode http://192.168.0.222/svn/myqwcode¾Í¿ÉÒÔÁË£¬²»ÐèÒª½¨Á¢ÐÂĿ¼£¡
1¡¢½«Îļþcheckoutµ½±¾µØÄ¿Â¼
svn checkout path£¨pathÊÇ·þÎñÆ÷ÉϵÄĿ¼£©
   ÀýÈ磺svn checkout svn://192.168.1.1/pro/domain
  ......

Debian Linux½øÈë²»ÁËͼÐνçÃæµÄÕÛÌÚ

Ê×ÏÈÎҵIJÙ×÷ϵͳÊÇDebian Linux£¬ÎÒDebianÓõÄÊÇXfce×ÀÃæ»·¾³£¬×òÌìÎÒÓÃÁËÃüÁîapt-get install gnome,°²×°ÁËÒ»¶ÑÈí¼þÖ®ºóÖØÆô£¬¾Í½øÈë²»ÁËͼÐνçÃæÁË£¬Ö»ÄܽøÈë×Ö·û½çÃæ£¬½ñÌì¿ÉºÃÕÛÌÚÁË¡£
¡¡¡¡ÉÏÎçÔÚÍøÉϲé×ÊÁÏ£¬¿ÉÄÜ×ܽáÁ˼¸¸ö°É
¡¡¡¡1¡¢ÔÚ×Ö·û½çÃæÊäÈëÃüÁîstartx
¡¡¡¡2¡¢ÐÞ¸ÄinitµÄĬÈϼ¶£¬ËùÔÚÎļþµÄλÖÃ/etc/initt ......

¹¹½¨»ù±¾µÄǶÈëʽLinux¸ùÎļþϵͳ

¹¹½¨»ù±¾µÄǶÈëʽLinux¸ùÎļþϵͳ
ÆäʵÔÚÈ¥Äê8Ô·ÝÎÒ×öÏµÍ³ÒÆÖ²Ê±¾Í¹¹½¨ºÃÁËÒ»¸ö¿ÉÒÔÓõĸùÎļþϵͳ£¬µ«ÊÇÄÇʱÊǸú×űðÈ˵ġ¶LinuxÈ«ÏßÒÆÖ²Îĵµ¡·×öµÄ¡£ÓÐЩ¶«Î÷ÎÒÒ²²»Çå³þ£¬Ö»ÊǸú×Å×ö£¬×ö³öÀ´ÄÜÓþÍÁËÊÂÁË£¬Ã»ÓÐÉÆäÖеĹ淶£¬ÒÔ¼°ÎļþϵͳÖÐÄÄЩҪ£¬ÄÄЩ²»Òª¡£
³Ã׎ñÄê¹ýÄêµÄ¼¸Ìì¼ÙÆÚ£¬ÎÒÒÆÖ²ÖØÐÂÒÆÖ²ÁËU-Boot1.3.1 ......

linuxʵÑéÎå

ʵÑé5  ½ø³Ì¹ÜÀí
Ò»¡¢ÊµÑéÄ¿µÄ£º
1.      ÁË½â½ø³ÌÓë³ÌÐòµÄÇø±ð£¬¼ÓÉî¶Ô½ø³Ì¸ÅÄîµÄÀí½â¼Ó£»
2£® ÕÆÎÕ½ø³Ì²¢·¢Ö´ÐеÄÔ­Àí£¬¼°ÆäËùÒýÆðµÄͬ²½¡¢»¥³âÎÊÌâµÄ·½·¨
¶þ¡¢ÊµÑéÒªÇó£º
    Íê³ÉʵÑéÄÚÈݲ¢Ð´³öʵÑ鱨¸æ£¬±¨¸æÓ¦¾ßÓÐÒÔÏÂÄÚÈÝ£º
    1£® Ê ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ