linux-0.11调试教程 tty_table

                        图一


0x19170是tty_table的地址,图二是“Free mem: 12582912 bytes”对应的写队列缓冲区的一部分内容

46F,72:r,65:e,65:e,20:空格,6d:m...   ...

                             图二


图三

图三是是tty队列结构,0x00000103表示队列里面的head位置看来head和tail只是一个相对位置,而不是地址。

struct tty_queue {
    unsigned long data;
    unsigned long head;    0x00000103
    unsigned long tail;       0x00000103
    struct task_struct * proc_list;
    char buf[TTY_BUF_SIZE];
};


你可能感兴趣的:(linux-0.11调试教程 tty_table)