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

linux 2.6Ô´´úÂëÇé¾°·ÖÎö±Ê¼ÇÖ®½ø³Ì11

Ϻ¯Êý£¬´´½¨½ø³ÌÃèÊö·ûÒÔ¼°×Ó½ø³ÌÖ´ÐÐËùÐèÒªµÄËùÓÐÆäËûÊý¾Ý½á¹¹¡£²ÎÊýÓëdo_fork()µÄ²ÎÊýÏàͬ£¬Íâ¼Ó×Ó½ø³ÌµÄpid¡£
static task_t *copy_process(unsigned long clone_flags,unsigned long stack_start,struct pt_regs *regs,unsigned long stack_size,int __user *parent_tidptr,int __user *child_tidptr,int pid)
{
        int retval;
        struct task_struct *p = NULL;
        if ((clone_flags & (CLONE_NEWNS|CLONE_FS)) == (CLONE_NEWNS|CLONE_FS))
                return ERR_PTR(-EINVAL);
        if ((clone_flags & CLONE_THREAD) && !(clone_flags & CLONE_SIGHAND))
                return ERR_PTR(-EINVAL);
        if ((clone_flags & CLONE_SIGHAND) && !(clone_flags & CLONE_VM))
                return ERR_PTR(-EINVAL);
ÉÏÃæµÄÒ»×éÊÇ»¥Ïàì¶ÜµÄ£¬ËùÒÔ±ØÐë¼ì²é£¬ÈçµÚÒ»¸ö¡£clone²»ÄÜÓÖÐèÒª×Ô¼ºµÄ¿Õ¼ä£¬ÓÖÆÁ±ÎÎļþ³õʼÐí¿ÉȨµÄλÑÚÂë¡£
¶øµÚ¶þÐе±CLONE_THREAD±»ÉèÖã¬Í¬Ê±CLONE_SIGHANDÓÖ±»ÇåÁãµÄʱºòÊDz»¿ÉÒԵģ¬ÒòΪͬһÏß³Ì×éÖеÄÇáÁ¿¼¶½ø³Ì±ØÐë¹²ÏíÐźÅ
CLONE_SIGHAND±êÖ¾±»ÉèÖã¬CLONE_VM±»ÇåÁãÒ²²»¿ÉÒÔ£¬ÒòΪ¹²ÏíÐźŴ¦Àí³ÌÐòµÄÇáÁ¿¼¶½ø³ÌÒ²±ØÐë¹²ÏíÄÚ´æÃèÊö·û
        retval = security_task_create(clone_flags);£¯£¯Ö´Ðи½¼ÓµÄ°²È«¼ì²é
        if (retval)
                goto fork_out;
        retval = -ENOMEM;
        p = dup_task_struct(current);£¯£¯Îª×Ó½ø³Ì»ñÈ¡½ø³ÌÃèÊö·û
        if (!p)
      &nb


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨Èý£© HCI²ã±à³Ì

1. HCI²ãЭÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI)  ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈЭÒé ......

linux 2.6Ô´´úÂëÇé¾°·ÖÎö±Ê¼ÇÖ®½ø³Ì10

¼¸µã×¢Ò⣺
1.дʱ¸´ÖƼ¼ÊõÔÊÐí¸¸×Ó½ø³Ì¶ÁÏàͬµÄÎïÀíÒ³¡£Ö»ÒªÁ½ÕßÖÐÓÐÒ»¸öÊÔͼдһ¸öÎïÀíÒ³£¬Äں˾ͰÑÕâ¸öÒ³µÄÄÚÈÝ¿½±´µ½Ò»¸öеÄÎïÀíÒ³£¬²¢°ÑÕâ¸öеÄÎïÀíÒ³·ÖÅä¸øÕýÔÚдµÄ½ø³Ì¡£
2.ÇáÁ¿¼¶½ø³ÌÔÊÐí¸¸×Ó½ø³Ì¹²Ïíÿ½ø³ÌÔÚÄں˵ĺܶàÊý¾Ý½á¹¹¡£
3.vfork()ϵͳµ÷Óô´½¨µÄ½ø³ÌÄܹ²ÏíÆ丸½ø³ÌµÄÄÚ´æµØÖ·¿Õ¼ä¡£ÎªÁË·ÀÖ¹¸¸½ø³ÌÖ ......

linuxÏÂsvnµÄÅäÖ÷½·¨

1¡¢yum install subversion  # °²×°svn×é¼þ
°²×°³É¹¦Ö®ºó£¬¿ÉÒÔ¿´µ½ÈçÏÂÏà¹ØµÄÃüÁî±»Éú³É£º
[flykobe@localhost svnclient]$ svn
svn svnadmin svndumpfilter svnlook svnserve svnsync svnversion  
2¡¢Éú³Ésvn²Ö¿â
svnadmin create /var/svnrepos
[flykobe@local ......

Linux Îļþ

1.Inode
inode ÐÅÏ¢»ú¹¹ÓÉÒÔϼ¸¸ö²¿·Ö×é³É
Mode£ºinodeµÄÃèÊöÄÚÈݺÍÓû§·ÃÎÊȨÏÞ
Owner info£ºÎļþ»òĿ¼ËùÓÐÕßµÄÐÅÏ¢£¬°üÀ¨ËùÊô×éÐÅÏ¢
Size£ºÎļþ´óС
Timestamps£ºÊ±¼ä´Á£¬Îļþ´´½¨¼°×îºóÐÞ¸Äʱ¼ä
Ö±½Ó¿éÖ¸Õë:
¼ä½Ó¿éÖ¸Õ룺
Ë«Öؼä½Ó¿éÖ¸Õ룺
ÈýÖؼä½Ó¿éÖ¸Õ룺 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ