Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\livepatch\core.c Create Date:2022-07-28 10:30:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:klp_alloc_func_nop

Proto:static struct klp_func *klp_alloc_func_nop(struct klp_func *old_func, struct klp_object *obj)

Type:struct klp_func

Parameter:

TypeParameterName
struct klp_func *old_func
struct klp_object *obj
459  func = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
460  If Not func Then Return NULL
463  If xternal Then
464  xternal = kstrdup(xternal , GFP_KERNEL)
465  If Not xternal Then
466  kfree(func)
467  Return NULL
471  klp_init_func_early(obj, func)
476  The old_sympos field is optional and can be used to resolve* duplicate symbol names in livepatch objects = The old_sympos field is optional and can be used to resolve* duplicate symbol names in livepatch objects
477  nop = true
479  Return func
Caller
NameDescribe
klp_add_object_nops