- 博客(8)
- 收藏
- 关注
转载 进程调度策略
13.2 Scheduling PoliciesThe operating system supports four scheduling policies for threads. A thread object's scheduling policy is determined by the setting of the scheduling policy attribute i
2014-10-28 14:05:29 420
原创 tcp PUSH 标志的理解
PUSH标志发送端 TCP将发送带有PUSH标志的数据包时,表示这个数据应该被立即发送,而不要等待额外的数据。接收端接受到带有PUSH标志的数据时,接收进程接受到的所有数据(包含当前带PUSH标示的数据包)应该立即被提交到应用层。 当前没有API通知TCP哪些数据需要被设置PUSH标示,完全由TCP自行判断决定。 TCP是如何决策哪些数据需要被标示PUSH呢?
2014-10-11 08:29:37 3539
原创 LINUX 字符设备自动创建文件节点
#include #include #include #include #include MODULE_LICENSE("GPL"); #define DEVICE_NAME "hello"#define DEVICE_CLASS_NAME"helloclass"struct cdev mycdev;dev_t device_node;static
2014-09-18 13:18:30 493
原创 LINUX手动创建设备节点与字符注册
#include #include #include #include MODULE_LICENSE("GPL"); #define DEVICE_NAME "hello0"struct cdev mycdev;dev_t device_node; static __init int hello_init(void){ i
2014-09-18 13:14:16 1659
原创 Makefile编写记录
Makefile编写记录ifneq ($(KERNELRELEASE),)obj-m := helloworld.oelse KERNELDIR ?= /lib/modules/$(shell uname-r)/buildPWD := $(shell pwd) default: $(MAKE)-C $(KERNELDIR) M=$(PWD) mo
2014-09-18 13:03:55 404
原创 简单的HelloWorld程序
#include #include MODULE_LICENSE("Dual BSD/GPL"); static int __init hello_init(void){ printk("%s-- hello world,are you ok!\n",__func__); return0;} sta
2014-09-18 13:03:22 428
转载 the real role of Major and Minor Numbers(来源于网络)
One of the basic features of the Linux kernel is that it abstracts the handling of devices. All hardware devices look like regular files; they can be opened, closed, read and written using the same, s
2014-09-18 09:21:25 354
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人