Home
last modified time | relevance | path

Searched refs:new_ldt (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.4/arch/x86/kernel/
Dldt.c67 struct ldt_struct *new_ldt; in alloc_ldt_struct() local
73 new_ldt = kmalloc(sizeof(struct ldt_struct), GFP_KERNEL); in alloc_ldt_struct()
74 if (!new_ldt) in alloc_ldt_struct()
87 new_ldt->entries = vzalloc(alloc_size); in alloc_ldt_struct()
89 new_ldt->entries = (void *)get_zeroed_page(GFP_KERNEL); in alloc_ldt_struct()
91 if (!new_ldt->entries) { in alloc_ldt_struct()
92 kfree(new_ldt); in alloc_ldt_struct()
97 new_ldt->slot = -1; in alloc_ldt_struct()
99 new_ldt->nr_entries = num_entries; in alloc_ldt_struct()
100 return new_ldt; in alloc_ldt_struct()
[all …]