linuxÄÚ´æ³Ø
ÄÚ´æ³Ø(memory pool) ÊÇlinux2.6µÄÒ»¸öеÄÌØÐÔ¡£»ù±¾ÉϽ«£¬Ò»¸öÄÚ´æ³ØÔÊÐíÒ»¸öÄں˳ɷ֣¬Èç¿éÉ豸×Óϵͳ£¬½öÔÚÄÚ´æ²»×ãµÄ½ô¼±Çé¿öÏ·ÖÅäһЩ¶¯Ì¬ÄÚ´æÀ´Ê¹Óá£
ÄÚ´æ³ØÊǶ¯Ì¬ÄÚ´æµÄ´¢±¸£¬Ö»Äܱ»Ìض¨µÄÄں˳ɷ֣¨¼´³ØµÄ“ÓµÓÐÕß”£©Ê¹Óá£ÓµÓÐÕßͨ³£²»Ê¹Óô¢±¸£»µ«ÊÇ£¬Èç¹û¶¯Ì¬ÄÚ´æ±äµÃ¼«ÆäÏ¡ÓÐÒÔÖÁÓÚËùÓÐÆÕͨÄÚ
´æ·ÖÅäÇëÇ󶼽«Ê§°ÜµÄ»°£¬ÄÇô×÷Ϊ×îºóµÄ½â¾öÊֶΣ¬Äں˳ɷ־ÍÄܵ÷ÓÃÌض¨µÄÄÚ´æ³Øº¯ÊýÌáÈ¡´¢±¸µÃµ½µÄËùÐèµÄ¶îÄÚ´æ¡£Òò´Ë£¬´´½¨Ò»¸öÄÚ´æ³Ø¾ÍÏñÊÖÍ··ÅЩ¹à×°
ʳÎï×÷Ϊ´¢±¸£¬µ±Ã»ÓÐÐÂÏÊʳÎïʱ¾ÍʹÓÿª¹ÞÆ÷¡£
Ò»¸öÄÚ´æ³Ø³£³£µþ¼ÓÔÚslab·ÖÅäÆ÷Ö®ÉÏ————Ò²¾ÍÊÇ˵£¬Ëü±»ÓÃÀ´±£´æsla¶ÔÏóµÄ´¢±¸¡£µ«ÊÇÒ»°ã¶øÑÔ£¬ÄÚ´æ³ØÄܱ»ÓÃÀ´·ÖÅäÈκÎÒ»ÖÖÀàÐ͵Ķ¯Ì¬Äڴ棬´ÓÕû¸öÒ³¿òµ½Ê¹ÓÃkmalloc£¨£©·ÖÅäµÄСÄÚ´æÇø¡£Òò´Ë£¬ÎÒÃǽ«Ò»°ãÄÚ´æ³Ø´¦ÀíµÄÄÚ´æµ¥Ôª¿´×Å“ÄÚ´æÔªËØ”¡¢
ÄÚ´æ³ØÓÉ£ºmempool_t¶ÔÏóÃèÊö£¬ËüµÄ×Ö¶ÎÈçÏÂ±í£º
ÀàÐÍ Ãû³Æ ˵Ã÷
spinlock_t lock ÓÃÀ´±£»¤¶ÔÏó×ֶεÄ×ÔÐýËø
int min_nr ÄÚ´æ³ØÖÐÔªËصÄ×î´ó¸öÊý
int curr_nr µ±Ç°ÄÚ´æ³ØÖÐÔªËصĸöÊý
void ** elements Ö¸ÏòÒ»¸öÊý×éµÄÖ¸Õ룬¸ÃÊý×éÓÉÖ¸Ïò±£ÁôÔªËصÄÖ¸Õë×é³É
void *
Ïà¹ØÎĵµ£º
Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
¸ß¼¶¿É±à³Ì¿ØÖÆÆ÷
Èç¹ûϵͳֻÓÐÒ»¸öcpu£¬Ö÷picÊä³öÏßÒÔÖ±½ØÁ˵±µÄ·½Ê½Á¬½Óµ½cpuµÄintrÒý½Å¡£Èç¹ûϵͳÖаüº¬Á½¸ö»ò¶à¸öcpu,¾ÍÐèÒª¸ü¼Ó¸´ÔÓµÄpic.
intel´Óp3¿ªÊ¼ÒýÈëi/o¸ß¼¶¿É±ä³É¿ØÖÆÆ÷£¨APIC£©×é¼þ¡£80x86΢´¦ÀíÆ÷µ±Ç°ËùÓеÄcpu¶¼º¬ÓÐÒ»¸ö±¾µØapic¡£Ã¿¸ö±¾µØapic¶¼ÓÐ32λ¼Ä´æÆ÷£¬Ò»¸öÄÚ²¿Ê±ÖÓ£¬Ò»¸ö±¾µØ¶¨ÊÇÉ豸ÒÔ¼°Îª±¾µ ......
ÐÞ¸Ä linux ϵͳ/ect/profile Îļþ
ÔÚ×îºóÃæ¼Ó
export LC_ALL="zh_CN.GB18030"
ÐÞ¸Ä /etc/sysconfig/i18nÎļþ
LANG="zh_CN.GB18030"
LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"
SUPPORTED="zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="lat0-sun16"
SYSFONTACM="iso01"
ÕâÑù¾Í¿ÉÒÔ½â¾ölinuxÏÂÖÐÎÄ ......
linuxϵͳ°²×°Í꣬ÒÔºóͨ¹ýÃüÁîģʽÅäÖÃÍø¿¨IP¡£ÅäÖÃÎļþͨ³£ÊÇ/etc/sysconfig/network-scripts/ifcfg-interface-name
1.ÅäÖÃÍø¿¨IPµØÖ·
vi /etc/sysconfig/network-scripts/ifcfg-eth0 #µÚ¶þ¿éÍø¿¨£ºvi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth0 #ÎïÀíÉ豸Ãû
IPADDR=192.168.1.10 #IPµØÖ·
NETMASK=255. ......