Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : linux

ÎÒµÄÐéÄâÎļþϵͳ£¨linux)


 
1# ·¢±íÓÚ 2005-11-15 17:34  Ö»¿´¸Ã×÷Õß
  http://www.chinaunix.net ×÷Õß:bierdaci  ·¢±íÓÚ£º2004-05-25 18:59:33
²»ÖªµÀ¸Ã²»¸Ã·¢ÕâÀÊÇÎÒ´Óproc¸ÄÀ´µÄ,¶®ÄÚºËÔ´ÂëµÄ½»Á÷½»Á÷
hello.c
[code:1:3adb123188]
#include "hello.h"
struct inode * hello_get_inode(struct super_block *, int, struct hello_dir_entry *);
/*Õâ¸öº¯ÊýÊÇÖ±½Ó´Ólinux¸´ÖƹýÀ´µÄ£¬×÷ÓþÍÊÇÏÔʾĿ¼ÀïµÄÎļþÃû£¬Ã»ÓÐÕâ¸ö
º¯ÊýÒ²ÐÐÖ»ÊÇÄãÓÃls¡¢dirÃüÁî¿´²»µ½Ä¿Â¼ÏµÄÎļþ¡£*/
int hello_readdir(struct file * filp, void * dirent, filldir_t filldir)
{
printk("hello_readdir\n");
struct hello_dir_entry * de;
unsigned int ino;
int i;
struct inode *inode = filp->f_dentry->d_inode;
ino = inode->i_ino;
de = (struct hello_dir_entry *) inode->u.generic_ip;
if (!de)
return -EINVAL;
i = filp->f_pos;
switch (i) {
case 0:
if (filldir(dirent, ".", 1, i, ino, DT_DIR) < 0)
return 0;
i++;
filp->f_pos++;
/* fall through */
cas ......

Linux select()Ïê½â

Linux select()Ïê½â
 
    selectϵͳµ÷ÓÃÊÇÓÃÀ´ÈÃÎÒÃǵijÌÐò¼àÊÓ¶à¸öÎļþ¾ä±ú(file descriptor)µÄ״̬±ä»¯µÄ¡£³ÌÐò»áÍ£ÔÚselectÕâÀïµÈ´ý£¬Ö±µ½±»¼àÊÓµÄÎļþ¾ä±úÓÐijһ¸ö»ò¶à¸ö·¢ÉúÁË״̬¸Ä±ä¡£
ÎļþÔÚ¾ä±úÔÚLinuxÀïºÜ¶à£¬Èç¹ûÄãmanij¸öº¯Êý£¬ÔÚº¯Êý·µ»ØÖµ²¿·Ö˵µ½³É¹¦ºóÓÐÒ»¸öÎļþ¾ä±ú±»´´½¨µÄ¶¼Êǵģ¬Èçman socket¿ÉÒÔ¿´µ½“On success, a file descriptor for the new socket is returned.”¶øman 2 open¿ÉÒÔ¿´µ½“open() and creat() return the new file descriptor”£¬ÆäʵÎļþ¾ä±ú¾ÍÊÇÒ»¸öÕûÊý£¬¿´socketº¯ÊýµÄÉùÃ÷¾ÍÃ÷°×ÁË£º
int socket(int domain, int type, int protocol);
µ±È»£¬ÎÒÃÇ×îÊìϤµÄ¾ä±úÊÇ0¡¢1¡¢2Èý¸ö£¬0ÊDZê×¼ÊäÈ룬1ÊDZê×¼Êä³ö£¬2ÊDZê×¼´íÎóÊä³ö¡£0¡¢1¡¢2ÊÇÕûÊý±íʾµÄ£¬¶ÔÓ¦µÄFILE *½á¹¹µÄ±íʾ¾ÍÊÇstdin¡¢stdout¡¢stderr£¬0¾ÍÊÇstdin£¬1¾ÍÊÇstdout£¬2¾ÍÊÇstderr¡£
±ÈÈçÏÂÃæÕâÁ½¶Î´úÂ붼ÊÇ´Ó±ê×¼ÊäÈë¶ÁÈë9¸ö×Ö½Ú×Ö·û£º
#include <stdio.h>
#include <unistd.h>
#include <string.h>
int main(int argc, char ** argv)
{
        char buf[1 ......

Linux ¿É¼ÓÔØÄÚºËÄ£¿éÆÊÎö

 
Linux® ¿É¼ÓÔØÄÚºËÄ£¿é£¨´ÓÄÚºËµÄ 1.2 °æ±¾¿ªÊ¼ÒýÈ룩ÊÇ Linux Äں˵Ä×îÖØÒª´´ÐÂÖ®Ò»¡£ËüÃÇÌṩÁË¿ÉÉìËõµÄ¡¢¶¯Ì¬µÄÄںˡ£Ì½Ë÷Òþ²ØÔڿɼÓÔØÄ£¿éºóÃæµÄÔ­Àí£¬²¢Ñ§Ï°ÕâЩ¶ÀÁ¢µÄ¶ÔÏóÈçºÎ¶¯Ì¬µØת»»³É Linux Äں˵ÄÒ»²¿·Ö¡£
Linux ¾ÍÊÇͨ³£Ëù˵µÄµ¥Äںˣ¨monolithic kernel£©
£¬¼´²Ù×÷ϵͳµÄ´ó²¿·Ö¹¦Äܶ¼±»³ÆΪÄÚºË
£¬²¢ÔÚÌØȨģʽÏÂÔËÐС£ËüÓë΢ÐÍÄÚºË
²»Í¬£¬ºóÕßÖ»°Ñ»ù±¾µÄ¹¦ÄÜ£¨½ø³Ì¼äͨÐÅ [IPC]¡¢µ÷¶È¡¢»ù±¾µÄÊäÈë/Êä³ö [I/O]
ºÍÄÚ´æ¹ÜÀí£©µ±×÷ÄÚºËÔËÐУ¬¶ø°ÑÆäËû¹¦ÄÜ£¨Çý¶¯³ÌÐò¡¢ÍøÂç¶ÑÕ»ºÍÎļþϵͳ£©ÅųýÔÚÌØȨ¿Õ¼äÖ®Íâ¡£Òò´Ë£¬Äú¿ÉÄÜÈÏΪ Linux
ÊÇÒ»¸öÍêÈ«¾²Ì¬µÄÄںˣ¬µ«ÊÂʵǡǡÏà·´¡£Í¨¹ý Linux ÄÚºËÄ£¿é£¨LKM£©¿ÉÒÔÔÚÔËÐÐʱ¶¯Ì¬µØ¸ü¸Ä Linux¡£
developerWorks ÉÏ Tim ËùÖøµÄÆäËûÆÊÎö……
ϵÁÐÎÄÕÂ

Linux flash ÎļþϵͳÆÊÎö

Security-Enhanced Linux£¨SELinux£©ÆÊÎö

ʵʱ Linux ¼Ü¹¹ÆÊÎö

Linux SCSI ×ÓϵͳÆÊÎö
......

LinuxÉ豸Çý¶¯¿ò¼Ü¡¢ÅäÖÃÎļþ¼°¼ÓÔØ

.Wub131 { display:none; }
±¾½²Ö÷Òª¸ÅÊöLinuxÉ豸Çý¶¯¿ò¼Ü¡¢Çý¶¯³ÌÐòµÄÅäÖÃÎļþ¼°³£ÓõļÓÔØÇý¶¯³ÌÐòµÄ·½·¨£»²¢ÇÒ½éÉÜRed Hat Linux°²×°³ÌÐòÊÇÈçºÎ¼ÓÔØÇý¶¯µÄ£¬Í¨¹ýÁ˽âÕâ¸ö¹ý³Ì£¬ ÎÒÃÇ¿ÉÒÔ×Ô¼º½«Çý¶¯³ÌÐò·Åµ½Òýµ¼ÅÌÖУ»°²×°Íêϵͳºó£¬Ê¹ÓÃkudzu×Ô¶¯ÅäÖÃÓ²¼þ³ÌÐò¡£
54com.cn
LinuxÉ豸Çý¶¯¸ÅÊö

ÖйúÍø¹ÜÁªÃËwww.bitscn.com
1. Äں˺ÍÇý¶¯Ä£¿é
ÖйúÍø¹ÜÁªÃËwww¡¢bitsCN¡¢com

²Ù×÷ϵͳÊÇͨ¹ý¸÷ÖÖÇý¶¯³ÌÐòÀ´¼ÝÔ¦Ó²¼þÉ豸£¬ËüΪÓû§ÆÁ±ÎÁ˸÷ÖÖ¸÷ÑùµÄÉ豸£¬Çý¶¯Ó²¼þÊDzÙ×÷
ϵͳ×î»ù±¾µÄ¹¦ÄÜ£¬²¢ÇÒÌṩͳһµÄ²Ù×÷·½Ê½¡£ÕýÈçÎÒÃDz鿴ÆÁÄ»ÉϵÄÎĵµÊ±,²»ÓÃÈ¥¹Üµ½µ×ʹÓÃnVIDIAоƬ£¬»¹ÊÇATIоƬµÄÏÔʾ¿¨£¬Ö»ÐèÖªµÀÊäÈëÃüÁî
ºó£¬ÐèÒªµÄÎÄ×Ö¾ÍÏÔʾÔÚÆÁÄ»ÉÏ¡£Ó²¼þÇý¶¯³ÌÐòÊDzÙ×÷ϵͳ×î»ù±¾µÄ×é³É²¿·Ö£¬ÔÚLinuxÄÚºËÔ´³ÌÐòÖÐÒ²Õ¼ÓнϸߵıÈÀý¡£
Íø¹ÜÍøbitsCN.com
LinuxÄÚºËÖвÉÓÿɼÓÔصÄÄ£¿é»¯Éè¼Æ£¨LKMs £¬Loadable Kernel Modules£©£¬Ò»°ãÇé¿öϱàÒëµÄLinuxÄÚºËÊÇÖ§³Ö¿É²åÈëʽģ¿éµÄ£¬Ò²¾ÍÊǽ«×î»ù±¾µÄºËÐÄ´úÂë±àÒëÔÚÄÚºËÖУ¬ÆäËüµÄ´úÂë¿ÉÒÔÑ¡ÔñÊÇÔÚÄÚºËÖУ¬»òÕß±àÒëΪÄں˵ÄÄ£¿éÎļþ¡£ ÖйúÍø¹ÜÁªÃËwww.bitscn.com

Èç¹ûÐèҪijÖÖ¹¦ÄÜ£¬±ÈÈçÐèÒª·ÃÎÊÒ»¸öNTFS ......

LINUX ÏÂÅäÖÃÓʼþ·þÎñÆ÷¹ý³Ì£¨Êµ¼ù£©


1¡¢Ê×ÏÈ´ÓÈí¼þ¹ÜÀíÀï°ÑËùÓÐÓйØÓʼþ·þÎñÈí¼þ¶¼×°ÉÏ£¬ÆäÖаüÀ¨ÁË£¬sendmailºÍdovecot
2
¡¢
DN
SÅä
ÖÃ

¡¡¡¡£¨1£©ÐÞ¸Ä/etc/named.conf
£¬´ËÎļþÒ»°ãÊǸöÈíÁ´½Ó£¬Ìí¼ÓÈçÏ£º
zone "excontainer.com" IN {
        type master;
        file "excontainer.com";
};
zone "47.7.33.10.in-addr.arpa" IN {
        type master;
        file "10.33.7.zone";
};
¡¡¡¡£¨2£©/etc/resolv.conf
£¨Ìí¼ÓÈçÏ£©
search excontainer.com
nameserver 10.33.7.47
      £¨3£©/var/named/*£¨
ÏÂĿ¼Îļþ¶¼ÊÇÈíÁ´½Ó£¬ÎÒÃÇÒªµ½/var/named/chroot/var/named/*Ͻ¨Á¢Îļþ£¬È»ºóLINKµ½Õâ¸öÎļþÀ
ÕýÏò½âÎöÎļþexcontainer.comÎļþÀïÄÚÈÝ£º
$TTL    86400
@               IN SOA excontainer.com.   root.excontainer.com. (
  &nb ......

Linux×ÀÃæÈçºÎ²ÅÄÜ×ß³öÀ§¾³£¿


 
 
    ÔÚÌÖÂÛÕâ¸öÎÊÌâ֮ǰ£¬ÎÒÃÇÏÈÀ´¿´¿´Linux×ÀÃæÓöµ½ÁËʲôÀ§ÄÑ¡£
    Ä¿Ç°£¬LinuxÔÚ×ÀÃæÉϵÄÊг¡Õ¼ÓÐÂʾÝÓйط½Ãæ¹À¼ÆÔÚ1%×óÓÒ£¬Õâ¸ö±ÈÀýÉõÖÁ»¹²»ÈçAppleµÄMac OS X£¬È˼ҵÄÊг¡Õ¼ÓÐÂÊÒ²ÓÐ4%ÒÔÉÏ¡£¸ü±ðÌáMS Windows°Ù·ÖÖ®¾ÅÊ®ÒÔÉϵÄÊг¡Õ¼ÓÐÂÊ£¬¿ÉÒÔ˵Linux×ÀÃæËƺõ¿ÉÒÔºöÂÔ²»¼Æ¡£ÔÚÖйúMSÒ»¼Ò¶À´óµÄ¾ÖÃæ¸üÊÇÈç´Ë£¬ÎÒ¹ú±¾ÊÇÊÀ½çÉÏ×î´óµÄ·¢Õ¹Öйú¼Ò£¬µ«°º¹óµÄWindowsϵͳµÄÕ¼ÓÐÂÊÈ´±ÈÈκÎÒ»¸ö¹ú¼Ò¶¼¸ß£¬ºÃÏñÎÒ¹úºÜÓÐÇ®ËƵġ£
    ÁíÒ»·½Ã棬LinuxµÄʹÓÃÈËȺ·¶Î§¼°ÆäÕ­£¬Ö»ÓÐÉÙÊýµÄ¿ª·¢ÈËÔ±ºÍ×ÔÓÉÈí¼þ°®ºÃÕßÔÚʹÓÃLinux¡£ÔÚ¼ÆËã»úרҵѧÉúÈËȺÖУ¬Á˽âºÍʹÓÃLinuxµÄѧÉúÒ²²¢²»¶à£¬ËûÃÇ»¹ÔÚD°æµÄWindowsÏÂÍæ×Å×Ô¼ºµÄÓÎÏ·ºÍ¿´×Å×Ô¼ºµÄµçÓ°£¬ºÁ²»ÖªµÀµ±Ç°Èí¼þ²úÒµµÄ·¢Õ¹·½Ïò£¬´ÓÀ´Ò²²»·´Ê¡·´Ê¡D°æµÄÈí¼þÓõ½Ê²Ã´Ê±ºò²ÅÊǾ¡Í·£¬´ÓÀ´²»Îª¹ú¼ÒµÄÈí¼þ²úÒµÏëÒ»Ïë¡£ÕâÓë¹ú¼ÊÉÏÅ·¢Õ¹µÄ×ÔÓÉ¿ªÔ´Èí¼þÔ˶¯¼«²»Ïà·û¡£
    Linux¾­¹ýÕâô¶àÄêµÄ·¢Õ¹£¬Æäƽ̨ÉϵÄÈí¼þÒ²±È½Ï·á¸»ÁË£¬µ«ÏÖ½ñºÜ¶àµÄ×ÀÃ漶ӦÓÃÈí¼þ»¹ÊDZȽÏȱ·¦£¬ÓÈÆäÊÇÓéÀÖºÍÓÎÏ··½Ãæ¡£ÁíÍâLinuxÉϺܶà×ÀÃæÈí¼þµÄÒ×ÓÃÐÔºÍÖÇÄÜÐԽϲ°²×°£¬Å ......
×ܼǼÊý:5772; ×ÜÒ³Êý:962; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [953] [954] [955] [956] [957] [958] 959 [960] [961] [962]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ