Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\dynamic_debug.c Create Date:2022-07-28 07:15:55
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Allocate a new ddebug_table for the given module* and add it to the global list.

Proto:int ddebug_add_module(struct _ddebug *tab, unsigned int n, const char *name)

Type:int

Parameter:

TypeParameterName
struct _ddebug *tab
unsigned intn
const char *name
888  dt = 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).
889  If (dt == NULL) Then
890  pr_err("error adding module: %s\n", name)
891  Return -ENOMEM
899  mod_name = name
900  num_ddebugs = n
901  ddebugs = tab
903  mutex_lock( & ddebug_lock)
904  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
905  mutex_unlock( & ddebug_lock)
907  vpr_info("%u debug prints in module %s\n", n, mod_name)
908  Return 0
Caller
NameDescribe
dynamic_debug_init