s3c2410ƽ̨ÏÂlinuxËļü°´¼üÇý¶¯³ÌÐò
#ifndef __KERNEL__
#define __KERNEL__
#endif
#ifndef MODULE
#define MODULE
#endif
#include<linux/config.h>
#include<linux/module.h>
#include<linux/version.h>
#include<linux/init.h>
#include<linux/kernel.h>
#include<linux/errno.h>
#include<linux/sched.h>//ÉùÃ÷ÖжÏ
#include<linux/fs.h>//ÉùÃ÷fileÎļþ
#include<asm/system.h>/*cli(),*_flages*/
#include<linux/poll.h>
#include<linux/types.h>
#include<linux/slab.h>
#include <asm/arch/S3C2410.h>
#include <asm/hardware.h>//devf
//-------------------------------
#include <asm/io.h>/* ioremap */
#include <linux/delay.h>
#include <asm/delay.h>
//--------------------------------
#include <asm-arm/arch-s3c2410/smdk.h>
#include <linux/ioport.h>
#include <asm/irq.h>
#include <asm/mach/irq.h>
//define the interrupt No.
#define interrupt_k4 IRQ_EINT0
#define interrupt_k3 IRQ_EINT2
#define interrupt_k2 IRQ_EINT11
#define interrupt_k1 IRQ_EINT19
/*
struct IRQ_STRUCT
{
unsigned int irq_no;
void (*irq_fun)();
};
static IRQ_STRUCT irq_struct[4];
*/
//¶¨Òå¼üÅ̵ÄÖ÷É豸ºÅdefine the major of keypad
#define KEYPAD_MAJOR 59
#ifndef MOD_INC_USE_COUNT
#define MOD_INC_USE_COUNT
#endif
#ifndef MOD_DEC_USE_COUNT
#define MOD_DEC_USE_COUNT
#endif
#define COMMAND1 1
#define KBD_GETKEY 1
static int keyvalue;
#define DEVICE_NAME "keypad"
//setup the GPIO F ports register
#define key_rGPFCON (*(volatile unsigned long *) key_r_GPFCON)
#define key_rGPFUP (*(volatile unsigned long *) key_r_GPFUP)
#define key_rGPFDAT (*(volatile unsigned long *) key_r_GPFDAT)
//setup the GPIO G ports register
#define key_rGPGCON (*(volatile unsigned long *) key_r_GPGCON)
#define key_rGPGUP (*(volatile unsigned long *) key_r_GPGUP)
#define key_rGPGDAT (*(volatile unsigned long *) key_r_GPGDAT)
unsigned long *key_r_GPFCON, *key_r_GPFDAT,
Ïà¹ØÎĵµ£º
Linuxϸ߲¢·¢µÄSquid·þÎñÆ÷£¬TCP TIME_WAITÌ×½Ó×ÖÊýÁ¿¾³£´ïµ½Á½¡¢ÈýÍò£¬·þÎñÆ÷ºÜÈÝÒ×±»ÍÏËÀ¡£Í¨¹ýÐÞ¸ÄLinuxÄں˲ÎÊý£¬¿ÉÒÔ¼õÉÙSquid·þÎñÆ÷µÄTIME_WAITÌ×½Ó×ÖÊýÁ¿¡£
¡¡¡¡
vi /etc/sysctl.conf
¡¡¡¡Ôö¼ÓÒÔϼ¸ÐУº
ÒýÓÃ
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.tcp_syncookie ......
NFSÍøÂçÎļþϵͳÊÇͨ¹ýÎļþϵͳʵÏÖ×ÊÔ´¹²ÏíµÄÒ»ÖÖ×îÖØÒªµÄ·½Ê½¡£
c/s ¿Í»§»ú ·þÎñÆ÷
B/S ä¯ÀÀÆ÷ ·þÎñÆ÷
NFS·þÎñ¶ËÅäÖãº
±à¼/etc/exportsÎļþÒÔÅäÖÿª·Å·¾¶¡£/home/share 192.168.0.123£¨ro£©/(rw).
/etc/init.d/portmap restart
/etc/init.d/nfs&nb ......
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <stdio.h>
#include <string>
#include <iostream>
#include <cstring>
using namespace std;
void peek_interfaces(int ......
LinuxÌṩÁË´óÁ¿µÄÃüÁÀûÓÃËü¿ÉÒÔÓÐЧµØÍê³É´óÁ¿µÄ¹¤
×÷£¬Èç´ÅÅ̲Ù×÷¡¢Îļþ´æÈ¡¡¢Ä¿Â¼²Ù×÷¡¢½ø³Ì¹ÜÀí¡¢ÎļþȨÏÞÉ趨µÈ¡£ËùÒÔ£¬ÔÚLinuxϵͳÉϹ¤×÷Àë²»¿ªÊ¹ÓÃϵͳÌṩµÄÃüÁî¡£ÒªÏëÕæÕýÀí½âLinuxϵͳ£¬
¾Í±ØÐë´ÓLinuxÃüÁîѧÆð£¬Í¨¹ý»ù´¡µÄÃüÁîѧϰ¿ÉÒÔ½øÒ»²½Àí½âLinuxϵͳ¡£
²»Í¬Linux·¢ÐаæµÄÃüÁîÊýÁ¿²»Ò»Ñù£¬µ«Linux·¢Ð ......