Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\ldt.c Create Date:2022-07-28 07:35:35
Last Modify:2022-05-18 16:20:29 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:free_ldt_struct

Proto:static void free_ldt_struct(struct ldt_struct *ldt)

Type:void

Parameter:

TypeParameterName
struct ldt_struct *ldt
344  If Value is more likely to compile time(!ldt) Then Return
347  paravirt_free_ldt(entries, nr_entries)
348  If nr_entries * The size of each LDT entry. > PAGE_SIZE Then vfree_atomic(entries)
350  Else free_page((unsignedlong)entries)
352  free previously allocated memory
Caller
NameDescribe
ldt_dup_contextCalled on fork from arch_dup_mmap(). Just copy the current LDT state,* the new task is not running, so nothing can be installed.
destroy_context_ldtNo need to lock the MM as we are the last user* 64bit: Don't touch the LDT register - we're already in the next thread.
write_ldt