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

linux 2.6 ÄÚºËÄ£¿éµÄMakefile



 
Linux 2.6 ÏÂÄÚºËÄ£¿éµÄMakefile
ÊÕ²Ø



Linux 2.6 ÏÂÄÚºËÄ£¿éµÄMakefile
# Makefile 2.6
obj-m += hello.o
KDIR:=/lib/modules/$(shell uname -r)/build
# PWD=$(shell pwd)
all:
        make -C $(KDIR) M=$(PWD) modules
clean:
        make -C $(KDIR) M=$(PWD) clean
obj-m := hello.o±íʾ±àÒëºóÉú³Éhello.oÄ£¿é¡£
$(KDIR) Ö¸¶¨ÁËÄÚºËÔ´ÂëµÄ·¾¶£¬“M=”±íʾÕâÊǸöÍⲿģ¿é£¬M=$(PWD) Ö¸¶¨Á˸ÃÄ£¿éÎļþËùÔڵķ¾¶¡£
×¢£º makefile
Ô¤¶¨ÒåÁË$(PWD)
±äÁ¿£¬´Ë´¦¿ÉÒÔ²»±ØÖظ´¶¨Òå¡£
Èç¹ûÊǶà¸öÔ´Îļþ±àÒë³öÒ»¸öÄ£¿é£¬¼ÙÉèÄ£¿éÃûÊÇtest.ko£¬ÄÇôԴÎļþÃû²»ÄÜÓÐtest.c
obj-m := test.o
test-objs := file1.o file2.o file3.o
KDIR := /lib/modules/$(shell uname -r)/build
#PWD := $(shell pwd)
all:
        make -C $(KDIR) M=$(PWD) modules
clean:
Ò»¸ö¼òµ¥µÄÄÚºËÄ£¿éʾÀý£ºhello.c
#include <linux/module.h>
#include <linux/init.h>
MODULE_LICENSE("GPL");
static int  __iinit  hello_init(void)
{
   printk("hello, world\n");
   return 0;
}
static void  __exit hello_exit(void)
{
   printk("goodbe\n");
}
module_init(hello_init);
module_exit(hello_exit);


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨Èý£© HCI²ã±à³Ì

1. HCI²ãЭÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI)  ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈЭÒé ......

ʵսLinux Bluetooth±à³Ì (Æß) SDPЭÒé

Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖЭÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀЭÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......

Linux×î»ù±¾µÄ²Ù×÷¼¼ÇÉ

ת×Ôhttp://blog.chinaunix.net/u/30619/showart.php?id=249558
1 linuxĿ¼¼Ü¹¹
/       ¸ùĿ¼
/bin         ³£ÓõÄÃüÁî   binary   file   µÄÄ¿錄
/boot       ´æ·ÅÏµÍ ......

ÔËÐÐÁËOracleµÄLinux·þÎñÆ÷¸ü¸ÄÖ÷»úÃû

ÔËÐÐÁËOracleµÄLinux·þÎñÆ÷¸ü¸ÄÖ÷»úÃû
¼ÙÈçÒª°ÑÖ÷»úÃû¸ÄΪoratest¡£
$±íʾoracleÓû§²Ù×÷£»
#±íʾrootÓû§²Ù×÷¡£
DB£ºoracle10.2
OS£ºRHEL4.5
µÚÒ»²½£¬¹Ø±ÕÊý¾Ý¿âºÍ¼àÌý£¬dbconsole£º
$ dbshut
$ lsnrctl stop
µÚ¶þ²¿£º
# hostname oratest
µÚÈý²½£º
# vi /etc/sysconfig/network
¸ü¸Ähostname²ÎÊý¡£
µÚËIJ½ ......

Redhat AS4 Linux³£Ó÷þÎñºÍ¹¤¾ß


ÕâÀï¼Ç¼Redhat LinuxÖеÄһЩ³£Ó÷þÎñºÍÅäÖù¤¾ß¡£°æ±¾»ùÓÚAS4¡£
1.Firewall
ͨ¹ýÃüÁîÐÐÅäÖãºlokkit
ͼÐνçÃæÅäÖãºApplications->System Settings->Security Level
2.samba
/etc/init.d/smb start | /etc/init.d/smb stop | /etc/init.d/smb restart
»òÕß
service smb start | service smb stop | servic ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ