Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dump_primes

Proto:static void dump_primes(void)

Type:void

Parameter:Nothing

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 = fetch RCU-protected pointer for dereferencing(primes)
254  If buf Then map_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  pr_info("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)
Caller
NameDescribe
selftest