linux内核读书笔记(进程数据结构分析)一
include/linux/sched.h
384 struct task_struct {
385 volatile long state;
386 struct thread_info *thread_info;
387 atomic_t usage;
388 unsigned long flags;
389 unsigned long ptrace;
390
391 int lock_depth;
392
393 int prio, static_prio;
394 struct list_head run_list;
395 prio_array_t *array;
396
397 unsigned long sleep_avg;
398 long interactive_credit;
399 unsigned long long timestamp;
400 int activated;
401
302 unsigned long policy;
403 cpumask_t cpus_allowed;
404 unsigned int time_slice, first_time_slice;
405
406 struct list_head tasks;
407 struct list_head ptrace_children;
408 struct list_head ptrace_list;
409
410 struct mm_struct *mm, *active_mm;
...
413 struct linux_binfmt *binfmt;
414 int exit_code, exit_signal;
415 int pdeath_signal;
...
419 pid_t pid;
420 pid_t tgid;
...
426 struct task_struct *real_parent;
427 struct task_struct *parent;
428 struct list_head children;
429 struct list_head sibling;
430 struct task_struct *group_leader;
...
433 struct pid_link pids[PIDTYPE_MAX];
434
435 wait_queue_head_t wait_chldexit;
436 struct completion *vfork_done;
437 int __user *set_child_tid;
438 &nb
相关文档:
分享一下我在网上看到的硬盘安装Linux 9.0的相关操作:
下面有两种安装方法.
<A>从dos安装.这方法可以不用软盘,比较方便.
<A.1> 得到dosutils目录
这个目录里有从dos安装和软盘安装的工具.一般都在第一个iso文件里.
在linux下可以这样装载iso文件.
mount -o loop valhalla-i386-disc1.iso /mnt/cdro ......
网络截包是一项很有意思的课题,可以有数据过滤,防火墙,流量控制,报文篡改等诸多应用,按照内核分层架构将一些截包方法不完全整理如下,欢迎补充。
1、 L1层驱动截包法
在驱动中下手应该可以说是最贴近底层的,网卡驱动中总有rx接收和xmit发送函数,参数总是sk_buffer,在这里修改很黄很暴力,而且 ......
今天把PHP环境换到LINUX里面来,用的是LD 9.12.1系统。linux很多安装跟配置都需要在终端环境下完成,虽然上次在YLMF OS里面安装过,可是那些代码还是记不清了。感谢因特网的力量,随手谷歌一下就基本上都找到了。现在将安装过程录下,方便下次的时候翻閲。
1.先下载xampp。在官方网站 ......
Linux 2.6内核的一个重要特色是提供了统一的内核设备模型。随着技术的不断进步,系统的拓扑结构越来越复杂,对智能电源管理、热插拔以及plug and play的支持要求也越来越高,2.4内核已经难以满足这些需求。为适应这种形势的需要,2.6内核开发了全新的设备模型。
2.6 ......