taglinefilesource code
ldt364fs/exec.cset_base(current->ldt[1],code_base);
ldt365fs/exec.cset_limit(current->ldt[1],code_limit);
ldt366fs/exec.cset_base(current->ldt[2],data_base);
ldt367fs/exec.cset_limit(current->ldt[2],data_limit);
ldt138include/linux/sched.hunsigned long  ldt;    /* 16 high bits zero */
ldt206include/linux/sched.hstruct desc_struct ldt[32];
ldt351include/linux/sched.h#define set_base(ldt,base) _set_base( ((char *)&(ldt)) , base )
ldt352include/linux/sched.h#define set_limit(ldt,limit) _set_limit( ((char *)&(ldt)) , (limit-1)>>12 )
ldt450include/linux/sched.h#define get_base(ldt) _get_base( ((char *)&(ldt)) )
ldt125kernel/fork.cp->tss.ldt = _LDT(nr);
ldt153kernel/fork.cset_ldt_desc(gdt+(nr<<1)+FIRST_LDT_ENTRY,&(p->ldt));
ldt556kernel/sched.cset_ldt_desc(gdt+FIRST_LDT_ENTRY,&init_task.ldt);
ldt71kernel/traps.cprintk("base: %p, limit: %p\n",get_base(current->ldt[1]),get_limit(0x17));
ldt82mm/mmap.cbase = get_base(current->ldt[1]);  /* cs */
ldt85mm/mmap.cbase = get_base(current->ldt[2]);  /* ds */
ldt142mm/mmap.cbase = get_base(current->ldt[2]);  /* map into ds */