taglinefilesource code
ldt337fs/exec.ccode_base = get_base(current->ldt[1]);
ldt339fs/exec.cset_base(current->ldt[1],code_base);
ldt340fs/exec.cset_limit(current->ldt[1],code_limit);
ldt341fs/exec.cset_base(current->ldt[2],data_base);
ldt342fs/exec.cset_limit(current->ldt[2],data_limit);
ldt585fs/exec.cfree_page_tables(get_base(current->ldt[1]),get_limit(0x0f));
ldt586fs/exec.cfree_page_tables(get_base(current->ldt[2]),get_limit(0x17));
ldt104include/linux/sched.hunsigned long  ldt;    /* 16 high bits zero */
ldt165include/linux/sched.hstruct desc_struct ldt[3];
ldt306include/linux/sched.h#define set_base(ldt,base) _set_base( ((char *)&(ldt)) , base )
ldt307include/linux/sched.h#define set_limit(ldt,limit) _set_limit( ((char *)&(ldt)) , (limit-1)>>12 )
ldt368include/linux/sched.h#define get_base(ldt) _get_base( ((char *)&(ldt)) )
ldt300kernel/exit.cfree_page_tables(get_base(current->ldt[1]),get_limit(0x0f));
ldt301kernel/exit.cfree_page_tables(get_base(current->ldt[2]),get_limit(0x17));
ldt34kernel/fork.cstart += get_base(current->ldt[2]);
ldt49kernel/fork.cold_code_base = get_base(current->ldt[1]);
ldt50kernel/fork.cold_data_base = get_base(current->ldt[2]);
ldt52kernel/fork.cprintk("ldt[0]: %08x %08x\n",current->ldt[0].a,current->ldt[0].b);
ldt53kernel/fork.cprintk("ldt[1]: %08x %08x\n",current->ldt[1].a,current->ldt[1].b);
ldt54kernel/fork.cprintk("ldt[2]: %08x %08x\n",current->ldt[2].a,current->ldt[2].b);
ldt61kernel/fork.cset_base(p->ldt[1],new_code_base);
ldt62kernel/fork.cset_base(p->ldt[2],new_data_base);
ldt164kernel/fork.cp->tss.ldt = _LDT(nr);
ldt189kernel/fork.cset_ldt_desc(gdt+(nr<<1)+FIRST_LDT_ENTRY,&(p->ldt));
ldt516kernel/sched.cset_ldt_desc(gdt+FIRST_LDT_ENTRY,&(init_task.task.ldt));
ldt71kernel/traps.cprintk("base: %p, limit: %p\n",get_base(current->ldt[1]),get_limit(0x17));
ldt133mm/mmap.cbase = get_base(current->ldt[1]);  /* cs */
ldt136mm/mmap.cbase = get_base(current->ldt[2]);  /* ds */
ldt185mm/mmap.cbase = get_base(current->ldt[2]);  /* map into ds */