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

linuxÇý¶¯Ä£Ê½

linux-bus,device,driver,class
×ÜÏß
×ÜÏßÊÇ´¦ÀíÆ÷ºÍÒ»¸ö»ò¶à¸öÉ豸֮¼äµÄͨµÀ£¬ÔÚÉ豸ģÐÍÖÐ, ËùÓеÄÉ豸¶¼Í¨¹ý×ÜÏßÏàÁ¬, ÉõÖÁÊÇÄÚ²¿µÄÐéÄâ"platform"×ÜÏß¡£×ÜÏßÄÜÏ໥²åÈë¡£É豸ģÐÍչʾÁË×ÜÏߺÍËûÃÇËù¿ØÖƵÄÉ豸֮¼äµÄʵ¼ÊÁ¬½Ó¡£
ÔÚ Linux É豸ģÐÍÖÐ, ×ÜÏßÓÉ bus_type ½á¹¹±íʾ, ¶¨ÒåÔÚ £º
struct bus_type {
    const char        * name;/*×ÜÏßÀàÐÍÃû³Æ*/
    struct module        * owner;/*Ö¸ÏòÄ£¿éµÄÖ¸Õë(Èç¹ûÓÐ), ´ËÄ£¿é¸ºÔð²Ù×÷Õâ¸ö×ÜÏß*/
    struct kset        subsys;/*ºÍ¸Ã×ÜÏßÏà¹ØµÄ×Óϵͳ*/
    struct kset        drivers;/*×ÜÏßÇý¶¯³ÌʽµÄkset*/
    struct kset        devices;/* ¹ÒÔÚ¸Ã×ÜÏßµÄËùÓÐÉ豸µÄkset*/
    struct klist        klist_devices;/*ºÍ¸Ã×ÜÏßÏà¹ØµÄÇý¶¯³ÌʽÁ´±í*/
    struct klist        klist_drivers;/*¹Ò½ÓÔÚ¸Ã×ÜÏßµÄÉ豸Á´±í*/
    struct blocking_notifier_head bus_notifier;
    struct bus_attribute    * bus_attrs; /*×ÜÏßÊôÐÔ*/
    struct device_attribute * dev_attrs; /*É豸ÊôÐÔ,Ö¸ÏòΪÿ¸ö¼ÓÈë×ÜÏßµÄÉ豸½¨Á¢µÄĬÈÏÊôÐÔÁ´±í*/
    struct driver_attribute * drv_attrs; /*Çý¶¯³ÌʽÊôÐÔ*/
    struct bus_attribute drivers_autoprobe_attr;/*Çý¶¯×Ô¶¯Ì½²âÊôÐÔ*/
    struct bus_attribute drivers_probe_attr;/*Çý¶¯Ì½²âÊôÐÔ*/
    int        (*match)(struct device * dev, struct device_driver * drv);
    int        (*uevent)(struct device *dev, char **envp,
                 int num_envp, char *buffer, int buffer_size);
    int        (*probe)(struct device * dev);
    int        (*remove)(struct device * dev);
&nbs


Ïà¹ØÎĵµ£º

ʵս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 Bluetooth±à³Ì (Æß) SDPЭÒé

Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖЭÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀЭÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......

LINUXϲ鿴Apache²¢·¢ÇëÇóÊý¼°ÆäTCPÁ¬½Ó״̬

 
LINUXϲ鿴Apache²¢·¢ÇëÇóÊý¼°ÆäTCPÁ¬½Ó״̬ ÊÕ²Ø
2007-7-20 18:30 ÕÅÑç
²é¿´httpd½ø³ÌÊý£¨¼´preforkģʽÏÂApacheÄܹ»´¦ÀíµÄ²¢·¢ÇëÇóÊý£©£º
LinuxÃüÁ
ps -ef | grep httpd | wc -l
·µ»Ø½á¹ûʾÀý£º
¡¡¡¡1388
¡¡¡¡±íʾApacheÄܹ»´¦Àí1388¸ö²¢·¢ÇëÇó£¬Õâ¸öÖµApache¿É¸ù¾Ý¸ºÔØÇé¿ö×Ô¶¯µ÷Õû£¬ÎÒÕâ×é·þÎñÆ÷Ö ......

Linux atÃüÁʱ¹Ø»ú

from: http://www.pcstu.com/system/Linux/20090804/65873.html
±¾ÎĽéÉÜÏÂlinux atÃüÁîµÄÁíÒ»¸ö×÷ÓãºlinuxÏÂʹÓÃlinux atÃüÁʱ¹Ø»ú¡£
Ê×ÏÈ´´½¨Ò»¸öÎļþ,дÈ룺
#!/bin/sh
shutdown -h now
±£´æΪpowerÎļþ.Ö®ºó
chmod +x powerÖ®ºó¾ÍÄÜʹÓÃlinux atÃüÁʱ¹Ø»úÁË.
µ«ÊÇÐèÒªÓÐrootȨÏÞ²ÅÄܹػú,
ËùÒÔÐè ......

»ùÓÚBootsplashǶÈëʽLinuxÆô¶¯»­Ã涨ÖÆ

 
ÔÚ»ùÓÚlinuxµÄǶÈëʽ·ÂÕæƽ̨¿ª·¢ÖУ¬Öն˵ÄÃÀ¹ÛºÍ¿É¶¨ÖÆÊÇÒ»¸öÖØÒªµÄÎÊÌâ¡£¿ª»úʱ¹ö¶¯ÔÚÆÁÄ»ÉϵÄ×Ö·û´®ºÍµ¥µ÷µÄpenguinͼ±ê£¬Ê¹Ç¶Èëʽ
É豸ÈÔÈ»ÍÑÀë²»ÁËpcµÄºÛ¼££¬linux¿ØÖÆ̨Éϵ¥µ÷µÄ“°×Ö½ºÚ×Ö”ÐͱíÏÖ·½Ê½¿Éν´óÉ··ç¾°¡£¸ÄÔìlinux¿ØÖÆ̨ʹ֮ÃÀ¹Û¿É¶¨ÖƵØչʾ¿ª»úÐÅÏ¢ºÍ
logo³ÉΪ»ùÓÚǶÈëʽlinuxÓ¦Ó ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ