Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:klp_alloc_object_dynamic

Proto:static struct klp_object *klp_alloc_object_dynamic(const char *name, struct klp_patch *patch)

Type:struct klp_object

Parameter:

TypeParameterName
const char *name
struct klp_patch *patch
430  obj = 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).
431  If Not obj Then Return NULL
434  If name Then
435  external = kstrdup(name, GFP_KERNEL)
436  If Not external Then
437  kfree(obj)
438  Return NULL
442  klp_init_object_early(patch, obj)
443  dynamic = true
445  Return obj
Caller
NameDescribe
klp_add_object_nops