LinuxÄÚºËÖÐARMÖжÏʵÏÖÏê½ârequest_irq£¨£©
ÔÚlinuxÄÚºËÖÐÓÃÓÚÉêÇëÖжϵĺ¯ÊýÊÇrequest_irq£¨£©£¬º¯ÊýÔÐÍÔÚKernel/irq/manage.cÖж¨Ò壺
int request_irq(unsigned int irq, irq_handler_t handler,
unsigned long irqflags, const char *devname, void *dev_id)
irq
ÊÇÒªÉêÇëµÄÓ²¼þÖжϺš£
handler
ÊÇÏòϵͳע²áµÄÖжϴ¦Àíº¯Êý£¬ÊÇÒ»¸ö»Øµ÷º¯Êý£¬ÖжϷ¢Éúʱ£¬ÏµÍ³µ÷ÓÃÕâ¸öº¯Êý£¬dev_id²ÎÊý½«±»´«µÝ¸øËü¡£
irqflags
ÊÇÖжϴ¦ÀíµÄÊôÐÔ£¬ÈôÉèÖÃÁËIRQF_DISABLED
£¨Àϰ汾ÖеÄSA_INTERRUPT£¬±¾°æzhonÒѾ²»Ö§³ÖÁË£©£¬Ôò±íʾÖжϴ¦Àí³ÌÐòÊÇ¿ìËÙ´¦Àí³ÌÐò£¬¿ìËÙ´¦Àí³ÌÐò±»µ÷ÓÃʱÆÁ±ÎËùÓÐÖжϣ¬ÂýËÙ´¦Àí³Ì
Ðò²»ÆÁ±Î£»ÈôÉèÖÃÁËIRQF_SHARED
£¨Àϰ汾ÖеÄSA_SHIRQ£©£¬Ôò±íʾ¶à¸öÉ豸¹²ÏíÖжϣ¬ÈôÉèÖÃÁËIRQF_SAMPLE_RANDOM£¨Àϰ汾ÖеÄ
SA_SAMPLE_RANDOM£©£¬±íʾ¶ÔϵͳìØÓй±Ï×£¬¶Ôϵͳ»ñÈ¡Ëæ»úÊýÓкô¦¡££¨Õ⼸¸öflagÊÇ¿ÉÒÔͨ¹ý»òµÄ·½Ê½Í¬Ê±Ê¹Óõģ©
dev_id
ÔÚÖжϹ²Ïíʱ»áÓõ½£¬Ò»°ãÉèÖÃΪÕâ¸öÉ豸µÄÉ豸½á¹¹Ìå»òÕßNULL¡£
devname
ÉèÖÃÖжÏÃû³Æ£¬ÔÚcat /proc/interruptsÖпÉÒÔ¿´µ½´ËÃû³Æ¡£
request_irq()·µ»Ø0±íʾ³É¹¦£¬·µ»Ø-INVAL±íʾÖжϺÅÎÞЧ»ò´¦Àíº¯ÊýÖ¸ÕëΪNULL£¬·µ»Ø-EBUSY±íʾÖжÏÒѾ±»Õ¼ÓÃÇÒ²»Äܹ²Ïí¡£
Ïà¹ØÎĵµ£º
LinuxÏÂÈí¼þµÄ°²×°ÓëÐ¶ÔØ
ÔÚWindowsϰ²×°Èí¼þʱ£¬Ö»ÐèÔËÐÐÈí¼þµÄ°²×°³ÌÐò£¨setup¡¢installµÈ£©»ò
ÕßÓÃzipµÈ½âѹËõÈí¼þ½â¿ª¼´¿É°²×°£¬ÔËÐз´°²×°³ÌÐò£¨uninstall¡¢unware¡¢“Ð¶ÔØ”µÈ£©¾ÍÄܰÑÈí¼þÇå³ý¸É¾»£¬ÍêȫͼÐλ¯µÄ²Ù×÷½çÃæ£¬¼òµ¥
µ½Ö»ÒªÓÃÊó±êÒ»Ö±µã»÷“ÏÂÒ»²½”¾Í¿ÉÒÔÁË¡£¶ø
Linux ......
¡¡±¾Õ½éÉÜLinuxÉÏ×î³£ÓõÄÎı¾±à¼Æ÷Vi¡£Îı¾±à¼Æ÷ÊÇËùÓмÆËã»úϵͳÖÐ×ʹÓõÄÒ»ÖÖ¹¤¾ß¡£Óû§ÔÚʹÓüÆËã»úµÄʱºò£¬ÍùÍùÐèÒª½¨Á¢×Ô¼ºµÄÎļþ£¬ÎÞÂÛÊÇÒ»°ãµÄÎı¾Îļþ¡¢Êý¾ÝÎļþ£¬»¹ÊDZàдµÄÔ´³ÌÐòÎļþ£¬ÕâЩ¹¤×÷¶¼Àë²»¿ª±à¼Æ÷¡£
¡¡¡¡LinuxϵͳÌṩÁËÒ»¸öÍêÕûµÄ±à¼Æ÷¼Ò×åϵÁУ¬ÈçEd¡¢Ex¡¢ViºÍEmacsµÈ£¬°´¹¦ÄÜËüÃÇ¿ÉÒÔ·ÖÎ ......
ÔÚ linux ÏÂÅäÖÃ ITK
1. ÏÂÔØ CMake£ºhttp://www.cmake.org/cmake/resources/software.html
Ϊ·½±ã°²×°£¬ÕâÀïÏÂÔØ¶þ½øÖÆÎļþ£¬Ñ¡ÔñÏÂÔØ£º cmake-2.6.4-Linux-i386.sh
2. °²×° CMake, µ½ cmake-2.6.4-Linux-i386.sh ´æ·ÅµÄĿ¼,ÊäÈ룬¿ÉÓà TAB ¼ü·½±ã²¹ÆëÃüÁî
#./ cmake-2. ......
½Å±¾Îļþ backup.sh
#!/bin/sh
a=`date "+%y_%m%d_%H%M"`
echo $a
/home/oracle/10g/bin/exp username@password@//192.168.0.126/SID owner=username FILE=/opt/beifen/126_username_$a.dmp
±¸·ÝµÄÎļþ¸ñʽÈ磺126_username_09_0920_2300.dmp
±àдÍêshell½Å±¾Ö®ºó£¬Òª¶ÔÆä¸³Óè¿ÉÖ´ÐÐȨÏÞ¼°ÆäÓû§ËùÊô£º
# chmod 7 ......
ÍøÉϺܶàÌû×ÓÎÊxhellÁ¬½ÓlinuxÖÐÎÄÂÒÂ룬¾ø´ó²¿·ÖÊǽ«LANGÊôÐÔÖµÉèÖÃÓ¢ÎÄ£¬¼´export LANG=en_US.UTF-8;
µ«ÊÇÎÒÃǽ«ÏµÍ³ÉèÖÃΪÖÐÎÄ£¬µ±È»ÊÇÒòΪ×Ô¼ºÓÃÖÐÎÄ¿ÉÒÔÌá¸ßЧÂÊ£¬¼õÉÙ³ö´í¡£
ÕâÖÖ·½Ê½Ö»ÄÜÖα겻ÄÜÖα¾£¬Ï´ÎʹÓÃsshÁ¬linuxʱ»¹ÊÇ»áÂÒÂ룬
ÏÖÔÚ½«ÎÒ×Ô¼ºµÄ½â¾ö·½Ê½¹²Ïí¸ø´ó¼Ò¡£
±à¼/etc/sysconfig/i18n
½«ÎļþÖе ......