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

dz̸linuxÄÚºËÖеÄlist.h[2]

Á´±íµÄɾ³ý
83/*
84 * Delete a list entry by making the prev/next entries
85 * point to each other.
86 *
87 * This is only for internal list manipulation where we know
88 * the prev/next entries already!
89 */
90static inline void __list_del(struct list_head * prev, struct list_head * next)
91{
92 next->prev = prev;
93 prev->next = next;
94}
¸Ãº¯Êýͨ¹ýÉèÖÃprevºÍnextÖ¸ÕëÖ¸Ïò±Ë´Ë£¬ÊµÏÖÁËɾ³ý¶þÕßÖ®¼ä½ÚµãµÄ¹¦ÄÜ¡£µ«ÊÇÕâÀïÎÒÓиöÒÉ»ó£¬É¾³ýµÄÖ¸ÕëµÄÊÍ·ÅÔÚÄÄÀïʵÏÖ¡£
96/**
97 * list_del - deletes entry from list.
98 * @entry: the element to delete from the list.
99 * Note: list_empty() on entry does not return true after this, the entry is
100 * in an undefined state.
101 */
102#ifndef CONFIG_DEBUG_LIST
103static inline void list_del(struct list_head *entry)
104{
105 __list_del(entry->prev, entry->next);
106 entry->next = LIST_POISON1;
107 entry->prev = LIST_POISON2;
108}
109#else
110extern void list_del(struct list_head *entry);
111#endif
¸Ãº¯Êýͨ¹ýµ÷ÓÃÉÏÃæµÄÄÚÁªº¯ÊýʵÏÖ½ÚµãµÄɾ³ý£¬ÕâÀïµÄLIST_POISON1ºÍLIST_POISON2ÊÇÔÚlinux/poison.h¶¨ÒåµÄ¡£´Ë´¦ÈÔÈ»ÊÇÌõ¼þ±àÒë¡£
 
 
Á´±í½ÚµãµÄÖû»
113/**
114 * list_replace - replace old entry by new one
115 * @old : the element to be replaced
116 * @new : the new element to insert
117 *
118 * If @old was empty, it will be overwritten.
119 */
120static inline void list_replace(struct list_head *old,
121 struct list_head *new)
122{
123 new->next = old->next;
124 new->next->prev = new;
125 new->prev = old->prev;
126 new->prev->next = new;
127}
128
129static inline void list_replace_init(struct list_head *old,
130 struct list_head *new)
131{
132 list_replace(old, new);
133 INIT_LIST_HEAD(old);
134}
¾²Ì¬ÄÚÁªº¯Êýlist_replace½ÓÊÜÁ½¸ö²ÎÊý£ºoldºÍnew£¬²¢Í¨¹ýnewÌæ»»old¡£¶ølist_replace_initº¯ÊýÔòÊÇͨ¹ýµ÷ÓÃlist_replace½øÐÐÌæ»»£¬Ö®ºóµ÷ÓÃINIT_LIST_HEAD¶Ô±»Ìæ»»µÄold½øÐÐÁ´±í³õʼ»¯¡£
 
 
Á´±íµÄÒƶ¯
146/**
147 * list_move - delete from one list


Ïà¹ØÎĵµ£º

Linux϶¯Ì¬¿âµÄÉú³É¼°Á´½Ó·½·¨(1)

               Linux϶¯Ì¬¿âµÄÉú³É¼°Á´½Ó·½·¨ £¨1£©
      Linux ϶¯Ì¬¿âÎļþµÄÀ©Õ¹ÃûΪ".so"£¨Shared Object£©¡£°´ÕÕÔ¼¶¨£¬ËùÓж¯Ì¬¿âÎļþÃûµÄÐÎʽÊÇlibname.so£¨¿ÉÄÜÔÚÃû×ÖÖмÓÈë°æ±¾ºÅ£©¡£ÕâÑù£¬Ï̺߳¯Êý¿â±»³Æ×÷ ......

LinuxϵͳÏ ÄÚºËÄ£¿é¿ª·¢

 
1. modprobe ¼ÓÔØÄÚºËÄ£¿é
 
a) ÔÚ /etc/module.conf ÖвéÕÒ±ðÃû
b) ÔÚ lib/modules/version/module.dep ÖÐÅжÏÊÇ·ñÓÐÒÀÀµÄ£¿éÐèÒª±»ÌáÇ°¼ÓÔØ£¨¸ÃÎļþ±»depmod-a½¨Á¢£©
 
2. 2.4ÄÚºËÖв»Ò»¶¨·ÇÓÃinit_moduleºÍcleanup_module×ö¿ªÊ¼ºÍ½áÊøµÄº¯Êý£¬µ«ÐèÒªÓÃmodule_initºÍ
 
module_exitÉêÃ÷¡£ ......

viviÓëLinux kernelµÄ²ÎÊý´«µÝÇé¾°·ÖÎö £¨×ª£©

ÔÚÉÏÒ»²¿·ÖÌáµ½¹ýÁË£¬vivi×÷Ϊbootloader£¬ÏòÄں˴«µÝÆô¶¯²ÎÊýÊÇÆä±¾Ö°¹¤×÷Ö®Ò»¡£Òª°ÑÕâ¸öÇé¾°·ÖÎöÇå³þ£¬²»½ö½öÐèÒª·ÖÎöviviµÄ²ÎÊý»ú ÖÆ£¬¶øÇÒÒª·ÖÎöLinux kernelµÄ½ÓÊÕ»úÖÆ¡£ÒòΪÕâÊÇÒ»¸ö¼òµ¥µÄͨÐŹý³Ì£¬±ÈÆ𱾿ÆËùѧϰµÄTCP/IPÀ´¼òµ¥µÄ¶à£¬µ«ÊÇÒòΪ¼òµ¥£¬ËùÒÔÔÚЭÒéÉϲ¢²»¹æ·¶£¬Àí½âÉÏ·´¶ø²»Èç TCP/IPЭÒé¡£ÏÂÃæ¾Í·ÖΪÁ½ ......

LinuxÁ÷Á¿¿ØÖÆ1

LinuxÁ÷Á¿¿ØÖÆ1--ÅŶӹæÔò
2008-07-31 15:26
Linux²Ù×÷ϵͳÖеÄÁ÷Á¿¿ØÖÆ¿ò¼Ü´´½¨ÁËÒ»¸öͨÓû·¾³£¬Ëü¼¯³ÉÁËËùÓÐÓÃÓÚÏÞÖƺÍÁ÷Á¿ÕûÐεĿÉÒÔ»¥ÁªµÄ²»Í¬ÔªËØ¡£ÔÚʵ¼Ê²Ù×÷ÖÐÕâЩԪËØÉõÖÁ¿ÉÒÔ×÷Ϊһ¸öÄ£¿é¶¯Ì¬µØ¼ÓÔغÍжÔØ¡£
 
TC£¨Traffic Control£©¹¤¾ßÌṩÁËÒ»¸öÃüÁîÐÐÓû§½Ó¿ÚÀ´ÅäÖÃLinuxÁ÷Á¿¿ØÖÆ¡£¸Ã¹¤¾ßÈÃÓû§¿ÉÒÔÉ ......

linuxµÄѹËõ/½âѹËõÃüÁî(tar,gzipµÈ)¼°Ê¾Àý

linuxµÄѹËõ/½âѹËõÃüÁî(tar,gzipµÈ)¼°Ê¾Àý
2008-08-18 15:43
tarÃüÁî
[root@linux ~]# tar [-cxtzjvfpPN] ÎļþÓëĿ¼ ....
²ÎÊý£º
-c £º½¨Á¢Ò»¸öѹËõÎļþµÄ²ÎÊýÖ¸Áî(create µÄÒâ˼)£»
-x £º½â¿ªÒ»¸öѹËõÎļþµÄ²ÎÊýÖ¸Á
-t £º²é¿´ tarfile ÀïÃæµÄÎļþ£¡
Ìرð×¢Ò⣬ÔÚ²ÎÊýµÄÏ´ïÖУ¬ c/x/t ½öÄÜ´æÔÚÒ»¸ö£¡²»¿ÉÍ¬Ê ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ