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

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 AS 5.4°²×°oracle10g ·½·¨

Oracle Database 10g Release 2 (10.2.0.1) Installation On Red Hat Enterprise Linux 5 (RHEL5)
Ò»°²×°ÐèÇó
1.swap ·ÖÇø²»µÍÓÚ2G
2.selinux ״̬disable
3.ÎïÀíÄÚ´æ²»µÍÓÚ512M
ϵͳ×é¼þ
GNOME Desktop Environment
Editors
Graphical Internet
Text-based Internet
Development Libraries
Development Tools ......

Linux signalº¯Êý½âÎö

    ÒÔÏÂÔÚcentos5.3ÉÏʵÑé¡£ÔÚlinuxÖÐsignalº¯ÊýÊÇͨ¹ýµ÷ÓÃsigactionÀ´ÊµÏֵģ¬ÓÉ´ËËü²»´æÔÚÐźŶªÊ§ÒÔ¼°Ã¿´ÎÐźŴ¦Àíºó»á°ÑÐźŴ¦Àí¸Ä³ÉĬÈÏ´¦Àí·½Ê½¡£µ«¶ÔÓÚϵͳµ÷Óú¯Êý±»ÐźŴò¶Ïʱ£¬ÏµÍ³µ÷ÓÃÊÇ·ñ»á×Ô¶¯Æô¶¯ºÃÏñûÔõô˵Ã÷¡£²»¹ý¿ÉÒÔ×Ô¼º¶¯ÊÖ¿´Ò»Ï£º
    signal(SIGTERM, term_handle ......

Linux——½¨Á¢½»²æ±àÒë»·¾³£¨gcc£©

windowsÖ÷»úºÍLinuxÐéÄâ»úÉèÖÃÎļþ¼Ð¹²Ïí
µÚÒ»²½£º´ò¿ªÐéÄâ»ú µãvm-----install vmtools
µÚ¶þ²½£º¿ªÊ¼ÐéÄâ»úLinux
ÔÚÖն˼üÈëÒ»ÏÂÃüÁî
cp /mnt/cdrom/VMwareTools-6.0.0-45731.tar.gz /usr/tmp
cd /usr/tmp
tar xzvf VMwareTools-6.0.0-45731.tar.gz
cd vmware-tools-distrib
./vmware-install.pl
һ·»Ø³µ£¬µÈ¿´µ ......

Linux»ñÈ¡±¾»úIP¡¢MACʾÀý³ÌÐò

#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 ϵͳԴÂë°²×° mysql ¡¢fedora10 mysql5

²Ù×÷ϵͳ Fedora 10
mysql°²×°°ü mysql-5.0.85.tar.gz
1¡¢´´½¨mysqlÓû§×éºÍÓû§Ãû
# groupadd mysqlGroup
  £¨´´½¨×飩
# useradd -g mysqlGroup mysqlUser 
£¨´´½¨Ò»ÕʺÅ)
2¡¢½âѹ°²×°°ü £¬µ±Ç°Ä¿Â¼Îª /home/hust/down/mysql/
# tar -xvzf mysql-5.0.85.tar.gz 
      ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ