2012-6-23 10:22:40 阅读433 评论0 232012/06 June23
PACKAGE ads armlmd 1.200 E32F0DE5161D COMPONENTS="armasm compiler \
bats armulate axd adwu fromelf armlink codewarrior armsd"
INCREMENT ads armlmd 1.200 permanent uncounted 612C53EF47C7 \
2012-6-2 10:22:24 阅读73 评论0 22012/06 June2
2012-5-24 19:56:58 阅读294 评论0 242012/05 May24
linux kernel 2.6.38
init_task实际上就是task_struct的一个实体。
Location:Arch/x86/kernel/init_task.c
2012-5-24 19:46:47 阅读118 评论0 242012/05 May24
| struct task_struct { volatile long state; 这个字段来描述进程的状态。这儿有个关键词volatile可是 一个熟悉的陌生人。在学C的时候一直都见过, |
2012-5-23 11:34:00 阅读42 评论0 232012/05 May23
divides the size of the array by the size of the first array element.#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
2012-5-23 11:15:32 阅读120 评论0 232012/05 May23
2012-5-20 11:20:00 阅读86 评论0 202012/05 May20
2012-5-17 20:23:18 阅读104 评论0 172012/05 May17
#hello.s
.data #数据段
2012-4-28 11:01:43 阅读167 评论0 282012/04 Apr28
2012-4-27 9:26:28 阅读66 评论0 272012/04 Apr27
496 ENTRY(system_call)
497 RING0_INT_FRAME # can't unwind into user space anyway
498 pushl_cfi %eax # save orig_eax
499 SAVE_ALL
500 GET_THREAD_INFO(%ebp)
501 # system call tracing in operation / emulation
2012-4-27 9:19:16 阅读42 评论0 272012/04 Apr27
2012-4-22 12:23:25 阅读33 评论0 222012/04 Apr22
2012-4-22 12:10:15 阅读44 评论0 222012/04 Apr22
2012-4-18 22:31:09 阅读60 评论0 182012/04 Apr18
#include <stdio.h>
#include <pthread.h>
int *thread(void *arg)
{
printf("thread pid = %d\n",(int)getpid());
return NULL;
}
int main(void)
{
pthread_t thid;
pthread_create(&thid,NULL,(void *)thread,NULL);
printf("main thread pid = %d\n",(int)getpid());
2012-4-17 15:59:42 阅读30 评论0 172012/04 Apr17