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

linuxÄÚºËprintkµ÷ÊÔ


linuxÄÚºËprintkµ÷ÊÔ£¨ÕªÂ¼¡¶Linux°²È«Ìåϵ·ÖÎöÓë±à³Ì¡·£©
linuxÄÚºËprintkµ÷ÊÔ£¨ÕªÂ¼¡¶Linux°²È«Ìåϵ·ÖÎöÓë±à³Ì¡·£©
1  printk¼°¿ØÖÆ̨µÄÈÕÖ¾¼¶±ð
º¯ÊýprintkµÄʹÓ÷½·¨ºÍprintfÏàËÆ£¬ÓÃÓÚÄں˴òÓ¡ÏûÏ¢¡£printk¸ù¾ÝÈÕÖ¾¼¶±ð£¨loglevel£©¶ÔÏûÏ¢½øÐзÖÀà¡£
ÈÕÖ¾¼¶±ðÓú궨Ò壬ÈÕÖ¾¼¶±ðºêÕ¹¿ªÎªÒ»¸ö×Ö·û´®£¬ÔÚ±àÒëʱÓÉÔ¤´¦ÀíÆ÷½«ËüºÍÏûÏ¢Îı¾Æ´½Ó³ÉÒ»¸ö×Ö·û´®£¬Òò´Ëprintk º¯ÊýÖÐÈÕÖ¾¼¶±ðºêºÍ¸ñʽ×Ö·û´®¼ä²»ÄÜÓжººÅ¡£
ÏÂÃæÊÇÁ½¸öprintkµÄÀý×Ó£¬Ò»¸öÓÃÓÚ´òÓ¡µ÷ÊÔÐÅÏ¢£¬ÁíÒ»¸öÓÃÓÚ´òÓ¡ÁÙ½çÌõ¼þÐÅÏ¢¡£
printk(KERN_DEBUG "Here I am: %s:%i\n", _ _FILE_ _, _ _LINE_ _);
printk(KERN_CRIT "I'm trashed; giving up on %p\n", ptr);
printkµÄÈÕÖ¾¼¶±ð¶¨ÒåÈçÏ£¨ÔÚlinux26/includelinux/kernel.hÖУ©£º
#defineKERN_EMERG"<0>"/*½ô¼±Ê¼þÏûÏ¢£¬ÏµÍ³±ÀÀ£Ö®Ç°Ìáʾ£¬±íʾϵͳ²»¿ÉÓÃ*/
#defineKERN_ALERT"<1>"/*±¨¸æÏûÏ¢£¬±íʾ±ØÐëÁ¢¼´²ÉÈ¡´ëÊ©*/
#defineKERN_CRIT"<2>"/*ÁÙ½çÌõ¼þ£¬Í¨³£Éæ¼°ÑÏÖصÄÓ²¼þ»òÈí¼þ²Ù×÷ʧ°Ü*/
#defineKERN_ERR"<3>"/*´íÎóÌõ¼þ£¬Çý¶¯³ÌÐò³£ÓÃKERN_ERRÀ´±¨¸æÓ²¼þµÄ´íÎó*/
#defineKERN_WARNING"<4>"/*¾¯¸æÌõ¼þ£¬¶Ô¿ÉÄܳöÏÖÎÊÌâµÄÇé¿ö½øÐо¯¸æ*/
#defineKERN_NOTICE"<5>"/*Õý³£µ«ÓÖÖØÒªµÄÌõ¼þ£¬ÓÃÓÚÌáÐÑ¡£³£ÓÃÓÚÓ밲ȫÏà¹ØµÄÏûÏ¢*/
#defineKERN_INFO"<6>"/*ÌáʾÐÅÏ¢£¬ÈçÇý¶¯³ÌÐòÆô¶¯Ê±£¬´òÓ¡Ó²¼þÐÅÏ¢*/
#defineKERN_DEBUG"<7>"/*µ÷ÊÔ¼¶±ðµÄÏûÏ¢*/
 
extern int console_printk[];
 
#define console_loglevel ¡¡(console_printk[0])
#define default_message_loglevel¡¡ (console_printk[1])
#define minimum_console_loglevel¡¡ (console_printk[2])
#define default_console_loglevel¡¡ (console_printk[3])
ÈÕÖ¾¼¶±ðµÄ·¶Î§ÊÇ0¡«7£¬Ã»ÓÐÖ¸¶¨ÈÕÖ¾¼¶±ðµÄprintkÓï¾äĬÈϲÉÓõļ¶±ðÊÇ DEFAULT_ MESSAGE_LOGLEVEL£¬Æ䶨ÒåÁгöÈçÏ£¨ÔÚlinux26/kernel/printk.cÖУ©£º
/*ûÓж¨ÒåÈÕÖ¾¼¶±ðµÄprintkʹÓÃÏÂÃæµÄĬÈϼ¶±ð*/
#define DEFAULT_MESSAGE_LOGLEVEL 4 /* KERN_WARNING ¾¯¸æÌõ¼þ*/
Äں˿ɰÑÏûÏ¢´òÓ¡µ½µ±Ç°¿ØÖÆ̨ÉÏ£¬¿ÉÒÔÖ¸¶¨¿ØÖÆ̨Ϊ×Ö·ûģʽµÄÖն˻ò´òÓ¡»úµÈ¡£Ä¬ÈÏÇé¿öÏ£¬“¿ØÖÆ̨”¾ÍÊǵ±Ç°µÄÐéÄâÖնˡ£
ΪÁ˸üºÃµØ¿ØÖƲ»Í¬¼¶±ðµÄÐÅÏ¢ÏÔʾÔÚ¿ØÖÆ̨ÉÏ£¬ÄÚºËÉèÖÃÁË¿ØÖÆ̨µÄÈÕÖ¾¼¶±ðconsole_loglevel¡£printkÈÕÖ¾¼¶±ðµÄ×÷ÓÃ


Ïà¹ØÎĵµ£º

[¾«»ª] ÀûÓÃlinuxÄÚºËÄ£¿éʵÏÖTTY Hack


///////////////////////////////////////////////////////////////////////////////////////////////
ÕâÊǺÜÔçÒÔÇ°µÄtty hackingÁË£¬Æäʵ¾ÍÊÇÒ»¸ö³õ¼¶µÄÄں˵ļüÅ̹³×ÓµÄʵÏÖÔ­Àí
ºóÃæÎÒ»áÌù³öÎÒÕûÀíphrackÔÓÖ¾59ÆÚÀïµÄ×îеÄÄں˼üÅ̹³×Ó¼¼Êõ
/////////////////////////////////////////////////////////////// ......

LinuxÏÂÆô¶¯oracle10gµÄemºÍisqlplus

LinuxÏÂÆô¶¯oracle10gµÄemºÍisqlplusµÄ·½·¨:
×¢:$ORACLE_HOMEΪoracleµÄ°²×°Â·¾¶
1,ʹÓÃEM(enterprise managment)
1.1Æô¶¯EM
$ORACLE_HOME/bin/emctl start dbconsole
Èç¹û³öÏÖÏÂÃæÏà¹ØÐÅÏ¢,˵Ã÷·þÎñÆô¶¯
Z set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.1.0.3.0
Copyright (c) 1996, 200 ......

ÔÚLinuxÉϵÄIDE ¿ª·¢»·¾³ Áбí


Integrated Development Environments / RAD tools / GUI-builders on Linux:
General/Editors:
Amy (HTML, C, C++, Java, SQL, LaTeX, Makefiles and many more languages)
blIDE (incomplete; no downloads as of yet)
IBM's Eclipse (an extensible IDE kit; Java, C/C++, plus other languages via plug-ins t ......

LinuxµÄshell±à³Ì


 
Shell±¾ÉíÊÇÒ»¸öÓÃCÓïÑÔ±àдµÄ³ÌÐò£¬ËüÊÇÓû§Ê¹ÓÃLinuxµÄÇÅÁº¡£Shell¼ÈÊÇÒ»ÖÖÃüÁîÓïÑÔ£¬ÓÖÊÇÒ»ÖÖ³ÌÐòÉè¼ÆÓïÑÔ¡£×÷ΪÃüÁîÓïÑÔ£¬Ëü½»»¥Ê½µØ½âÊͺÍÖ´ÐÐÓû§ÊäÈëµÄÃüÁ×÷Ϊ³ÌÐòÉè¼ÆÓïÑÔ£¬Ëü¶¨ÒåÁ˸÷ÖÖ±äÁ¿ºÍ²ÎÊý£¬²¢ÌṩÁËÐí¶àÔڸ߼¶ÓïÑÔÖвžßÓеĿØÖƽṹ£¬°üÀ¨Ñ­»·ºÍ·ÖÖ§¡£ËüËäÈ»²»ÊÇLinuxϵͳºËÐĵÄÒ»²¿·Ö£¬µ«Ë ......

Linux֪ʶ¸´Ï°£¨¶þ£©

¹ØÓÚlinuxµÄÎļþȨÏÞ£¬Á˽âһϵļ¸¸öÒªµã¾ÍÐÐÁË£¬Ê×ÏÈlinuxÓÐÓû§×éµÄ¸ÅÄÿ¸öÓû§×éÓ÷ÖÅäÓÐÒ»¸öid,ÓÃÓÚΨһµÄ±êʶ£¬¿ÉÒÔÓÃÓÚ·½±ãÖ¸¶¨´ËÓû§×éÖеÄÓû§²Ù×÷ijЩÎļþµÄȨÏÞ¡£Í¬Ñùÿ¸öÓû§Ò²ÓµÓÐÒ»¸öÓû§id£¬ÓÃÓÚΨһ±êʶÓû§£¬¶ø¶ÔÓÚÿ¸öÎļþÓà ls -l -a ¾Í¿ÉÒÔÏÔʾµ±Ç°Ä¿Â¼ÏÂÃæËùÓеÄÎļþÎļþ¼ÐµÄÏêϸÐÅÏ¢¡£ÀýÈ磺ÎÒÃÇÔ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ