Linux PCIÇý¶¯µÄ±àд
×÷Õߣº²ÜÖÒÃ÷,»ªÇåÔ¶¼ûǶÈëʽѧԺ½²Ê¦¡£
PCIÊÇÍâΧÉ豸»¥ÁªµÄ¼ò³Æ(Peripheral Component Interconnect)µÄ¼ò³Æ£¬×÷ΪһÖÖͨÓõÄ×ÜÏß½Ó¿Ú±ê×¼£¬ËûÔÚ¼ÆËã»úϵͳÖеõ½Á˹㷺µÄʹÓá£PCIµÄËÙ¶ÈÄܹ»´ïµ½132M/s¡£ÔÚÕâÀï¼òµ¥µÄ½éÉÜһϠlinux ÏÂPCIÇý¶¯µÄʵÏÖ¡£
ÔÚ±àдһ¸öPCIÇý¶¯µÄʱºòÎÒÃÇÏȵÃÈ·¶¨ÏµÍ³ÖÐÊÇ·ñÓÐÎÒÃǵÄÉ豸¡£ÎÒÃÇ¿ÉÒÔͨ¹ýlspci²é¿´PCIÉ豸¡£
[root@localhost ~]# lspci
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01)
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 01)
00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 08)
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:07.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
00:0f.0 VGA compatible controller: VMware Inc Abstract SVGA II Adapter
00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)
00:11.0 PCI bridge: VMware Inc PCI bridge (rev 02)
02:00.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)
02:01.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev 02)
02:02.0 USB Controller: VMware Inc Abstract USB2 EHCI Controller
È·¶¨ÓÐÉ豸ÒÔºó£¬ÎÒÃǾͿÉÒÔ¿ªÊ¼ÎÒÃǵÄPCIÉ豸Çý¶¯µÄ±àдÁË¡£
1¡¢ Ê×ÏÈÎÒÃǽéÉܼ¸¸ö±ØÐëÁ˽âµÄ½á¹¹Ìå
pci_driver£ºÕâ¸ö½á¹¹Ì嶨ÒåÔÚinclude/linu
Ïà¹ØÎĵµ£º
Ò»¡¢¶¨Ò壺ʲôÊǹ¶ù½ø³ÌºÍ½©Ê¬½ø³Ì
½©Ê¬½ø³Ì£ºÒ»¸ö×Ó½ø³ÌÔÚÆ丸½ø³Ì»¹Ã»Óе÷ÓÃwait()»òwaitpid()µÄÇé¿öÏÂÍ˳ö¡£Õâ¸ö×Ó½ø³Ì¾ÍÊǽ©Ê¬½ø³Ì¡£
¹Â¶ù½ø³Ì£ºÒ»¸ö¸¸½ø³ÌÍ˳ö£¬¶øËüµÄÒ»¸ö»ò¶à¸ö×Ó½ø³Ì»¹ÔÚÔËÐУ¬ÄÇôÄÇЩ×Ó½ø³Ì½«³ÉΪ¹Â¶ù½ø³Ì¡£¹Â¶ù½ø³Ì½«±»init½ø³Ì(½ø³ÌºÅΪ1)ËùÊÕÑø£¬²¢ÓÉinit½ø³Ì¶Ô ......
1¡¢ÓÃÐéÄâ»ú¼Ówindows¿ª·¢linux³ÌÐò
2¡¢±à¼Æ÷ÓÃSourceInsight
3¡¢¹¹½¨¹²ÏíĿ¼£¬¹ÒÔع²ÏíĿ¼
4¡¢windowsϹ²ÏíĿ¼ȨÏÞµÄÉèÖÃ
5¡¢ÓñàÒëÆ÷±àÒë³ö¿ÉÖ´ÐгÌÐò
linuxÏ ÍøÂç±à³Ì ±Ø±¸Í·Îļþ
#include <sys/types.h>
#include <sys/socket.h>
#include <errno.h>
#include <netinet/in.h>
......
1¡¢×ܽᱳ¾°
ÔÚlinuxϵͳÏ£¬Èç¹ûÄãÏÂÔز¢°²×°ÁËÓ¦ÓóÌÐò£¬ºÜÓпÉÄÜÔÚ¼üÈëËüµÄÃû³Æʱ³öÏÖ“command not found”µÄÌáʾÄÚÈÝ¡£Èç¹ûÿ´Î¶¼µ½°²×°Ä¿±êÎļþ¼ÐÄÚ£¬ÕÒµ½¿ÉÖ´ÐÐÎļþÀ´½øÐвÙ×÷¾ÍÌ«·±ËöÁË¡£ÕâÉæ¼°µ½»·¾³±äÁ¿PATHµÄÉèÖÃÎÊÌ⣬¶øPATHµÄÉèÖÃÒ²ÊÇÔÚlinux϶¨ÖÆ»·¾³±äÁ¿µÄÒ»¸ö×é³É²¿·Ö¡£±¾°¸Àý»ùÓÚRedHat AS4½² ......
½ø³ÌÒ»µ©µ÷ÓÃÁËwait£¬¾ÍÁ¢¼´×èÈû×Ô¼º£¬ÓÉwait×Ô¶¯·ÖÎöÊÇ·ñµ±Ç°½ø³ÌµÄij¸ö×Ó½ø³ÌÒѾÍ˳ö£¬Èç¹ûÈÃËüÕÒµ½ÁËÕâÑùÒ»¸öÒѾ±ä³É½©Ê¬µÄ×Ó½ø³Ì£¬wait ¾Í»áÊÕ¼¯Õâ¸ö×Ó½ø³ÌµÄÐÅÏ¢£¬ ²¢°ÑËü³¹µ×Ïú»Ùºó·µ»Ø£»Èç¹ûûÓÐÕÒµ½ÕâÑùÒ»¸ö×Ó½ø³Ì£¬wait¾Í»áÒ»Ö±×èÈûÔÚÕâÀֱµ½ÓÐÒ»¸ö³öÏÖΪֹ¡£
wait£¨µÈ´ý×Ó½ø³ÌÖжϻò½áÊø£©
Ïà¹Øº¯Êý waitp ......
ÎÒ¶ÔÄÚÈÝ×ö³ö²¿·Öµ÷Õû¡£
ǰЩÌìÓÐÈË·¢ÌûÎÊÈç¹ûÔÚ linux ÏÂÓà eclipse ¿ª·¢
C/C++£¬ËùÒÔÎÒ¾ÍÏëдÕâôһƪÌû×Ó£¬ÒòΪһֱÔÚÓà Eclipse ×ö JAVA
¿ª·¢£¬¶ÔEclipse±È½ÏÊìϤ£¬°²×°²å¼þµ±È»Ò²²»³ÉÎÊÌâ¡£ÎÞÒâÖÐÔÚÍøÉÏ¿´µ½ÕâƪÌû×Ó£¬¾õµÃдµÄºÜÏêϸ£¬ÎÒÒ²¾Í¾õµÃ×Ô¼ºÃ»ÓбØÒªÔÙÔÚÕâÉÏÃæÀË· ......