LinuxÄÚºËÉ豸ģÐÍ(5)
ÒëÕߣº¹ùÉÙ±¯
2009/12/02
ÔÎÄ£ºlinux/Documentation/driver-model/device.txt
»ù±¾µÄÉ豸Êý¾Ý½á¹¹
~~~~~~~~~~~~~~~~~~
struct device {
struct list_head g_list;
struct list_head node;
struct list_head bus_list;
struct list_head driver_list;
struct list_head intf_list;
struct list_head children;
struct device * parent;
char name[DEVICE_NAME_SIZE];
char bus_id[BUS_ID_SIZE];
spinlock_t lock;
atomic_t refcount;
struct bus_type * bus;
struct driver_dir_entry dir;
u32 class_num;
struct device_driver *driver;
void *driver_data;
void *platform_data;
u32 current_state;
unsigned char *saved_state;
void (*release)(struct device * dev);
};
Óò
~~
g_list: È«¾ÖÉ豸Á´±íÖеĽڵ㡣
node: É豸µÄ¸¸Ç׵ĺ¢×ÓÁ´±íÖеĽڵã(¸¸×Ó¹ØϵÊÇÊ÷½á¹¹Öеij£ÓùØϵ)¡£
bus_
Ïà¹ØÎĵµ£º
Filename
£º
[Linux]GNU
×Ô¶¯»¯¹¤¾ß£¨
automake
¹¤¾ßÁ´£©
Version
£º
V1.0
Date
£º
12/01/2009
Author
£º
S.C.Leon <leonsc@126.com>
=====================================================================
GNU
×Ô¶¯»¯¹¤¾ß£¨
automake
¹¤¾ßÁ´£©
Ò»¡¢
Makefile
½éÉÜ
Makefile
ÊÇ ......
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <ctype.h>
#include <time.h>
#include <unistd.h>
#include <signal.h>
static char *runStatusFile = "/syscfg/etc/runStatusFile";
FILE *pFile = NUL ......
ÔÚlinuxϵͳÉÏͬÑù¿ÉÒÔÅäÖô®¿Ú£¬Ê¹Óô®¿ÚÀ´ÓëÆäËûÉ豸½øÐÐͨÐÅ¡£
ÔÚÅäÖô®¿ÚÇ°£¬ÎÒÃÇÓÐÈ¡µÃlinuxϵͳµÄrootȨÏÞ£¬Õâ¸öºÜÖØÒª¡£·ñÔòÎÞ·¨Íê³ÉÏÂÃæ²½Öè¡£
1.Çл»µ½rootÓû§.
[root@localhost ~]#su root
2. ²éÕÒÓÐЧµÄ´®É豸.
[root@localhost ~]#cat /proc/devices
Character devices:
1 mem
4 /dev/v ......
GTK
----------------------------------------------
GTK(GIMP-The GNU Image Manipulation Program[ͼÐαà¼Èí¼þ]¹¤¾ßÏ䣬GIMP
ToolKit)ÊÇÒ»¸ö¹¦ÄÜÇ¿´ó¶øÇÒ¿ì½ÝµÄ¿ª·ÅÔ´ÂëͼÐο⣬ÓÃÓÚUNIX/LinuxÉϵÄXWindowϵͳ£¬³ÌÐòÔ±¿ÉÒÔÓÃÀ´´´½¨°´Å¥¡¢²Ëµ¥¼°ÆäËüͼÐζÔ
Ïó£¬GTK×î³õÊÇGIMPµÄרÓÿª·¢¿â£¬ºóÀ´· ......
radhat 5.2Ï°²×°oracle10g
1¡¢ÏµÍ³ÐèÇó£º
Äڴ棺ÖÁÉÙ512mb£¬ÍƼöÓÃ1g£»
Ó²ÅÌ£º·þÎñÆ÷ÖÁÉÙ60g£»
£¨Ò»°ãÇé¿öÏÂÓ²¼þ¶¼ÄÜ·ûºÏÒªÇó£©
Èí¼þ°ü£ºglibc-2.3.2, libaio-0.3.96
½»»»¿Õ¼ä:
RAM: 0~256MB, SWAP: 3 ±¶ RAM ´óС
RAM: 256~512MB, SWAP: 2 ±¶ RAM ´óС
RAM: >=512MB, SWAP: 10 ......