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

Linux¿éÉ豸Çý¶¯

ÎÄÕÂÀ´Ô´£ºhttp://blog.chinaunix.net/u3/94284/showart_1970946.html
¿éÉ豸Çý¶¯£¨Ò»£©
¸ÅÀ¨£º
¿éÉ豸Çý¶¯µÚÒ»¸ö¹¤×÷ͨ³£ÊÇ×¢²á×Ô¼ºµ½Äںˣ¬ÊÇͨ¹ýregister_blkdevÍê³ÉµÄ£¬ËäÈ»register_blkdev¿ÉÓÃÀ´»ñµÃÒ»¸öÖ÷É豸ºÅ£¬µ«ÊÇËü²»Ê¹´ÅÅÌÇý¶¯Æ÷¶Ôϵͳ¿ÉÓã¬ÓÐÒ»¸ö·Ö¿ªµÄ×¢²á½Ó¿ÚÄã±ØÐëʹÓÃÀ´¹ÜÀíµ¥¶ÀµÄÇý¶¯Æ÷£¬Ê¹ÓÃÕâÒ»½Ó¿ÚÓõ½block_device_operationsºÍgendisk½á¹¹Ì壬ÔÚlinuxÄÚºËÖУ¬Ê¹ÓÃgendisk£¨Í¨ÓôÅÅÌ£©½á¹¹ÌåÀ´±íʾ1¸ö¶ÀÁ¢µÄ´ÅÅÌÉ豸£¨»ò·ÖÇø£©¡£
¿éÉ豸Çý¶¯µÄºËÐÄÊÇÇëÇó´¦Àíº¯ÊýºÍ“ÖÆÔìÇëÇ󔺯Êý£¬ËùνÇëÇó´¦Àíº¯Êý»ò“ÖÆÔìÇëÇ󔺯Êý¾ÍÊÇÎÒÃÇËù˵µÄIOÇëÇó´¦Àí£¬ÇëÇó´¦Àíº¯ÊýµÄ½éÉÜÒýÈëÁËrequest½á¹¹Ì壬ÇëÇóº¯ÊýµÄÔ­ÐÍÊÇvoid request£¨request_queue_t *queue£©£»¶ø²»Ê¹ÓÃÇëÇó´¦Àí»òÕß“ÖÆÔìÇëÇ󔺯Êý£¬ËüµÄµÄÖ÷Òª²ÎÊýÊÇbio½á¹¹Ì壻
¶¨Ò壺
ϵͳÖÐÄܹ»Ëæ»ú£¨²»ÐèÒª°´Ë³Ðò£©·ÃÎʹ̶¨´óСÊý¾ÝƬ£¨chunks£©µÄÉ豸±»³ÆΪ¿éÉ豸¡£
ÕâЩÊý¾ÝƬ¾Í³ÆΪ¿é£¬×î³£¼ûµÄÊÇÓ²ÅÌ£¬»¹ÓÐÈíÅÌÇý¶¯Æ÷£¬CD-ROMÇý¶¯Æ÷ºÍÉÁ´æµÈ£¬×¢Ò⣬ËüÃǶ¼ÊÇÒÔ°²×°ÎļþϵͳµÄ·½Ê½Ê¹Óõė—ÕâÒ²ÊÇ¿éÉ豸һ°ãµÄ·ÃÎÊ·½Ê½¡£
 
Óë×Ö·ûÉ豸µÄÇø±ð£º
1¡¢  ×Ö·ûÉ豸°´ÕÕ×Ö·ûÁ÷µÄ·½Ê½±»ÓÐÐò·ÃÎÊ£¬Èç´®¿ÚºÍ¼üÅ̾Ͷ¼ÊôÓÚ×Ö·ûÉ豸£¬Èç¹ûÒ»¸öÓ²¼þÉ豸ÊÇÒÔ×Ö·ûÁ÷µÄ·½Ê½·ÃÎʵĻ°£¬ÄǾÍÓ¦¸Ã½«Ëü¹éÓÚ×Ö·ûÉ豸£¬·´¹ýÀ´£¬Èç¹ûÒ»¸öÉ豸ÊÇËæ»ú£¨ÎÞÐòµÄ£©·ÃÎʵģ¬ÄÇôËü¾ÍÊôÓÚ¿éÉ豸¡£
2¡¢  ¸ù±¾Çø±ðÊÇËüÃÇÄÜ·ñ¿ÉÒÔ±»Ëæ»ú·ÃÎÊ£¬Ò²¾ÍÊÇ˵£¬ÄÜ·ñÔÚ·ÃÎÊÉ豸ʱËæÒâµÄ´ÓÒ»¸öλÖÃÌøתµ½ÁíÒ»¸öλÖá£
3¡¢  ¿éÉ豸ֻÄÜÒÔ¿éΪµ¥Î»½ÓÊÜÊäÈëºÍ·µ»ØÊä³ö£¬¶ø×Ö·ûÉ豸ÒÔ×Ö½ÚΪµ¥Î»¡£
4¡¢  ¿éÉ豸¶ÔÓÚIOÇëÇóÓжÔÓ¦µÄ»º³åÇø£¬Òò´ËËüÃÇ¿ÉÒÔÑ¡ÔñÒÔʲô˳Ðò½øÐÐÏìÓ¦£¬×Ö·ûÉ豸ÎÞÐ뻺³åÇÒ±»Ö±½Ó¶Áд¡£
5¡¢  ×Ö·ûÉ豸ֻÄܱ»Ë³Ðò¶Áд£¬¶ø¿éÉ豸¿ÉÒÔËæ»ú·ÃÎÊ¡£
 
½âÆÊÒ»¸ö¿éÉ豸
¿éÉ豸ÖÐ×îСµÄ¿ÉÑ°Ö·µ¥ÔªÊÇÉÈÇø£¬ÉÈÇø´óСһ°ãÊÇ2µÄÕûÊý±¶£¬¶ø×î³£¼ûµÄ´óСÊÇ512¸ö×Ö½Ú£¬ÉÈÇøµÄ´óСÊÇÉ豸µÄÎïÀíÊôÐÔ£¬ÉÈÇøÊÇËùÓпéÉ豸µÄ»ù±¾µ¥Ôª——¿éÉ豸ÎÞ·¨¶Ô±ÈËü»¹Ð¡µÄµ¥Ôª½øÐÐÑ°Ö·ºÍ²Ù×÷£¬²»¹ýÐí¶à¿éÉ豸Äܹ»Ò»´Î¾Í´«Êä¶à¸öÉÈÇø¡£
ËäÈ»¸÷ÖÖÈí¼þµÄÓÃ;²»Í¬£¬µ«ÊÇËüÃǶ¼»áÓõ½×Ô¼ºµÄ×îСÂß¼­¿ÉÑ°Ö·µ¥Ôª——¿é£¬¿éÊÇÎļþϵͳһÖÖ³éÏó——Ö»ÄÜ»ùÓÚ¿éÀ´·ÃÎÊÎļþϵͳ£¬ËäÈ»ÎïÀí´ÅÅÌÑ°Ö·ÊÇ°´ÉÈÇø¼¶½øÐеģ¬µ«ÊÇ


Ïà¹ØÎĵµ£º

Linux »ã±àÓïÑÔ¿ª·¢Ö¸ÄÏ

http://blog.chinaunix.net/u2/62910/showart_1090856.html
Linux »ã±àÓïÑÔ¿ª·¢Ö¸ÄÏ
»ã±àÓïÑÔµÄÓŵãÊÇËٶȿ죬¿ÉÒÔÖ±½Ó¶ÔÓ²¼þ½øÐвÙ×÷£¬Õâ¶ÔÖîÈçͼÐδ¦ÀíµÈ¹Ø¼üÓ¦ÓÃÊǷdz£ÖØÒªµÄ¡£Linux ÊÇÒ»¸öÓà C ÓïÑÔ¿ª·¢µÄ²Ù×÷ϵͳ£¬ÕâʹµÃºÜ¶à³ÌÐòÔ±¿ªÊ¼Íü¼ÇÔÚ Linux Öл¹¿ÉÒÔÖ±½ÓʹÓûã±àÕâÒ»µ×²ãÓïÑÔÀ´ÓÅ»¯³ÌÐòµÄÐÔÄÜ¡£±¾ÎÄΪÄÇÐ©Ô ......

Writing Linux LCD drivers

Writing Linux LCD drivers
×÷ÕߣºJimSheng
Writing Linux LCD drivers
Abstract
1 LCD Module\Driver\Controller
2 Linux Frame Buffer Driver
2.1 Why Frame Buffer?
2.2 What is Frame Buffer Devices?
2.3 How to Write Frame Buffer Device Drivers?
3 Analysis of Linux Frame Buffer Driver Source ......

ÔÚlinux±àÔñproc³ö´í½â¾ö°ì·¨

³ö´íÐÅÏ¢
proc PARSE=FULL DBAccess.pc
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
System default option values taken from: /home/oracle/app/product/9.2.0/precomp/admin/pcscfg.cfg
Error at line 34, column 11 in file /usr/include/stdio.h
# include <stddef.h> ......

[ת]linuxÐźÅÁ¿µÄʵÏÖ

Ô­ÎĵØÖ·£ºhttp://blog.sina.com.cn/s/blog_460b9cbf0100gxtv.html
ҪʹÓÃÐźÅÁ¿£¬Äں˴úÂë±ØÐë°üÀ¨<asm/semaphore.h>¡£Ïà¹ØµÄÀàÐÍÊÇstruct semaphore£»Êµ¼ÊµÄÐźÅÁ¿¿Éͨ¹ý¼¸ÖÖ;¾¶À´ÉùÃ÷ºÍ³õʼ»¯¡£ÆäÖÐÖ®Ò»ÊÇÖ±½Ó´´½¨ÐźÅÁ¿£¬Õâͨ¹ýsema_initÍê³É£º
viod sema_init(struct semaphore *sem,int val);
ÆäÖÐvalÊǸ³Ó ......

linuxÍü記rootÃÜ碼

·½·¨Ò»£ºsingle mode
[code]1.        ÔÚ GRUB 選單畫ÃæµÄ時ºò£¬°´ e
2.        ÕÒµ½這Ò»ÐС¾kernel /vmlinuz-2.xxxxxxx ro root=/dev/hda2¡¿°´ e
3.        ÔÚ這Ò»ÐÐ×îáá¼ÓÉÏ single£¨ÒªÁôÒ»個¿Õ¸ñÔÙ¼Ó sing ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ