- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 堆排序
#include #define LARGE 1#define SMALL 0#define LEN 11#define RLEN 10int arr[LEN]; // arr[0] 不使用,坐标从1开始void adjust(int *arr,int s,int len) { int tmp,j; tmp = arr[s]; for(j=2*s; j<=len; j*=
2017-03-06 18:06:54 242
原创 进程号pid
通常,Linux中 最多有32768个进程,最大进程号为32767.Linux 中用一个4KB大小的物理页来作为 进程号位图. 来记录哪些进程号已经分配出去了.4KB = 4 * 1024 * 8 bits = 32768 bits
2017-03-03 21:37:50 742
原创 进程的状态
进程的状态:TASK_RUNNING 1.进程正在被CPU执行2.进程等待CPU执行它TASK_INTERRUPTIBLE进程处于挂起状态,以下情况可将进程返回TASK_RUNNING状态.1.对进程发起中断2.释放某系统资源3.给进程发送一个信号TASK_UNINTERRUPTIBLE和TASK_INTERUPITBLE相似
2017-03-03 21:12:18 285
原创 bus_type
struct bus_type { const char *name; struct bus_attribute *bus_attrs; struct device_attribute *dev_attrs; struct driver_attribute *drv_attrs; int (*match)(struct device *dev, struct device_drive
2017-03-03 01:58:08 402
原创 struct device
struct device { struct device *parent; struct device_private *p; struct kobject kobj; const char *init_name; /* initial name of the device */ struct device_type *type; struct mutex mutex;
2017-03-03 00:57:18 2519
原创 struct kobject
struct kobject { const char *name; struct list_head entry; struct kobject *parent; struct kset *kset; struct kobj_type *ktype; struct sysfs_dirent *sd; struct kref kref; unsigned int state
2017-03-02 23:26:51 625
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人