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
Ïà¹ØÎĵµ£º
×î½üÐèÒªÅäÖÃsvn·þÎñÆ÷¡£ÔÚÍøÉÏÕÒÁËһϣ¬Ñ¡ÔñApache£¬SubversionºÍTrac¡£
Ê×ÏÈ×¼±¸ÏµÍ³¹âÅÌ¡£ÒòΪÊÇLinux²Ù×÷ϵͳ£¬ËùÒÔ×¼±¸ºÃϵͳÄܽÚʡһЩʱ¼ä£¬±ÈÈçpython-devel¡£µ«ÊÇhttpd£¬subversionºÍtrac»¹ÊÇÏÂÔØÔ´Âë±àÒë°É¡£
ÏÂÔØÈí¼þ°ü£º
Gen ......
LinuxÎļþÃûµÄ³¤¶ÈÏÞÖÆÊÇ255¸ö×Ö·û
windowsÏÂÍêÈ«ÏÞ¶¨ÎļþÃû±ØÐëÉÙÓÚ260¸ö×Ö·û£¬Ä¿Â¼Ãû±ØÐëСÓÚ248¸ö×Ö·û¡£
linuxÏÂÎļþÊý¡¢Ä¿Â¼Êý¡¢ÎļþÃû³¤¶ÈµÄ¸÷ÖÖÏÞÖÆ
ÒÔϲâÊÔ¶¼ÊÇÔÚûÓÐÓÅ»¯»òÐÞ¸ÄÄں˵ÄǰÌáϲâÊԵĽá¹û
1. ²âÊÔÄ¿µÄ£ºext3ÎļþϵͳÏÂfilename×î´ó×Ö·û³¤¶È
²âÊÔÆ½Ì¨£ºRHEL5U3_x64
²âÊÔ¹ý³Ì£º
L ......
ÔÚLinuxÖÐʹÓõç¿ÊÇÒ»¼þ·Ç³£ÈÝÒ×µÄÊÂÇé,ÏÂÃæÒÔFedora6ΪÀý½éÉܰ²×°Ê¹Óò½Öè.
°²×°
££ÔÚ°²×°Ö®Ç°ÇëÏÈÈ·ÈÏ£¬×Ô¼ºµÄϵͳÖÐÊÇ·ñ°²×°ÁËwxGTK
Õâ¸ö°ü£º
££Ê¹ÓÃϵͳ×Ô´øµÄÔ´¼´¿É°²×°
# yum install wxGTK
££ÏÂÔØaMule²¢°²×°(´Ë´¦°²×°µÄÊÇFedorazod°æ±¾)
& ......
inuxµÄchmodÃüÁîʹÓÃÏê½â
ʹÓ÷½Ê½ : chmod [-cfvR] [--help] [--version] mode file...
˵Ã÷ : Linux/Unix µÄµµ°¸´æÈ¡È¨ÏÞ·ÖΪÈý¼¶ : µµ°¸ÓµÓÐÕß¡¢Èº×é¡¢ÆäËû¡£ÀûÓà chmod ¿ÉÒÔ½åÒÔ¿ØÖƵµ°¸ÈçºÎ±»ËûÈËËù´æÈ¡¡£
mode : ȨÏÞÉ趨×Ö´® ......
ÕªÒª
ÎÒÃÇÔÚÕâÀïÌÖÂÛµÄÊǶÔǶÈëʽlinuxϵͳµÄÆô¶¯¹ý³ÌµÄÊä³öÐÅÏ¢µÄ×¢ÊÍ£¬Í¨¹ýÎÒÃǵÄÌÖÂÛ£¬´ó¼Ò»á¶ÔǶÈëʽlinuxÆô¶¯¹ý³ÌÖгöÏֵġ¢ÒÔǰ¸Ð¾õÊìϤµÄ¡¢µ«È´ÓÖËÆÊǶø·ÇµÄ¶«Î÷ÓÐÒ»¸öÈ·ÇеÄÁ˽⣬²¢ÇÒÄÜÁ˽⵽ÕâЩÊä³öÐÅÏ¢µÄÀ´ÁúÈ¥Âö¡£
ǶÈëʽlinuxµÄÆô¶¯ÐÅÏ¢ÊÇÒ»¸öºÜÖµµÃÎÒÃÇÈ¥ºÃºÃÑо¿µÄ¶«Î÷£¬ËüÄܽ«Ò»·ùËõӰͼ³ÊÏÖÔÚÎÒÃÇÃæÇ°£ ......