函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\math\prime_numbers.c Create Date:2022-07-27 07:41:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dump_primes

函数原型:static void dump_primes(void)

返回类型:void

参数:

249  buf等于kmalloc(PAGE_SIZE, GFP_KERNEL)
251  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
252  p等于cu_dereference() - fetch RCU-protected pointer for dereferencing*@p: The pointer to read, prior to dereferencing* This is a simple wrapper around rcu_dereference_check().(primes)
254  如果bufmap_print_to_pagebuf - convert bitmap to list or hex format ASCII string*@list: indicates whether the bitmap must be list*@buf: page aligned buffer into which string is placed*@maskp: pointer to bitmap to convert*@nmaskbits: size of bitmap, in bits*
256  打印信息("primes.{last=%lu, .sz=%lu, .primes[]=...x%lx} = %s", last, sz, primes[BITS_TO_LONGS(sz) - 1], buf)
259  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
261  kfree(buf)
调用者
名称描述
selftest