Linux kernel Development second Edition
1. Technically speaking, and in this book, the operating
system
is considered the parts of the system responsible for basic use
and administration. This includes the kernel and device drivers, boot loader,
command shell or other user interface, and basic file and system utilities
Ïà¹ØÎĵµ£º
Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
Èç¹ûÄãÓÐÒ»¸öWindows/LinuxË«ÖØÆô¶¯µÄϵͳ£¬Äã¿ÉÄÜ»áÖªµÀÕâ¸öÎÊÌ⣺Äã¿ÉÒÔÔÚLinuxÀï·ÃÎÊWindowsÀïµÄÎļþ£¬µ«ÊÇÏà·´µÄ·ȴÐв»Í¨¡£±¾Ö¸ÄÏչʾÁËÈýÖÖ´ÓWindowsÀï·ÃÎÊLinux·ÖÇø£¨ext2»òext3Îļþϵͳ£©µÄ·½·¨£ºExplore2fs
, DiskInternals Linux Reader
£¬»¹ÓÐExt2 Installable File System For Windows
¡£Ç°Á½ÖÖÌṩֻ¶Á·ÃÎ ......
ÏñʹÓÃWindowsʱÄÇôֱ¹Û¡£ÆäʵÔÚLinuxÏ°²×°ºÍжÔØÈí¼þÒ²·Ç³£¼òµ¥£¬Í¬ÑùÒ²Óа²×°Ïò
µ¼»ò½âѹ°²×°µÄ·½Ê½£¬²»ÏàͬµÄÖ»²»¹ýÊdzýÁ˶þ½øÖÆÐÎʽµÄÈí¼þ·Ö·¢Í⣬»¹ÓÐÐíÐí¶à¶àÒÔ
Ô´´úÂëÐÎʽ·Ö·¢µÄÈí¼þ°ü£¬ÏÂÃæ¾ÍÀ´ÏêϸµØ½²Ò»½²ÕâЩÈí¼þµÄ°²×°ÓëжÔØ£º Ò»¡¢¶þ½øÖÆ·Ö·¢Èí¼þ°üµÄ°²×°ÓëжÔØ
LinuxÈí¼þµÄ¶þ½øÖÆ ......
´ó¼Ò¶¼ÖªµÀÔÚUnix/LinuxÖÐÓиömanÃüÁ¿ÉÒÔ²éѯ³£ÓõÄÃüÁº¯Êý¡£¿ÉÊǶÔÓÚÎÒÃÇÕâÑùÖ»ÖªµÀÓÃ"man º¯ÊýÃû"À´²éѯµÄÈËÀ´Ëµ£¬»áÓöµ½ºÜ¶àÎÊÌ⣬±ÈÈ磺
man read£¬ÎÒÏë¿´µÄÊÇANSI CÖÐstdioµÄreadº¯ÊýÔÐͺÍ˵Ã÷£¬Ã»Ïëµ½³öÀ´µÄÈ·ÊÇBASHÃüÁîµÄ˵Ã÷£¬ÕâÊÇÔõô»ØÊ ......
Ï̴߳¦ÓÚ·ÖÀë״̬ºó£¬µ±Ïß³ÌÍ˳öºó£¬ÔòÓвÙ×÷ϵͳÀ´¸ºÔðϵͳµÄ»ØÊÕ¡£
´´½¨·ÖÀë״̬Ï̵߳ķ½·¨ÓУº
1¡¢ÔÚÏ̺߳¯ÊýÖе÷Ó㬠pthread_detach(pthread_self());
2¡¢Ïß³ÌÊôÐÔµÄÉèÖú¯Êý
Õª×Ô£ºUnix »·¾³¸ß¼¶±à³Ì
int makethread(void *(*fn),void *arg)
{
int err;
&n ......