函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\ldt.c Create Date:2022-07-27 08:35:01
Last Modify:2022-05-18 16:20:29 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:free_ldt_struct

函数原型:static void free_ldt_struct(struct ldt_struct *ldt)

返回类型:void

参数:

类型参数名称
struct ldt_struct *ldt
344  如果此条件成立可能性大(为编译器优化)(!ldt)则返回
347  paravirt_free_ldt(entries, nr_entries)
348  如果nr_entriesThe size of each LDT entry. 大于PAGE_SIZEvfree_atomic(entries)
350  否则free_page((unsignedlong)entries)
352  释放内存
调用者
名称描述
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