Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:quarantine_put

Proto:void quarantine_put(struct kasan_free_meta *info, struct kmem_cache *cache)

Type:void

Parameter:

TypeParameterName
struct kasan_free_meta *info
struct kmem_cache *cache
177  temp = QLIST_INIT
187  local_irq_save(flags)
189  q = this_cpu_ptr( & The object quarantine consists of per-cpu queues and a global queue,* guarded by quarantine_lock.)
190  qlist_put(q, & This field is used while the object is in the quarantine. * Otherwise it might be used for the allocator freelist., The size of an object including metadata )
191  If Value for the false possibility is greater at compile time(bytes > QUARANTINE_PERCPU_SIZE) Then
192  qlist_move_all(q, & temp)
194  raw_spin_lock( & quarantine_lock)
195  WRITE_ONCE(Total size of all objects in global_quarantine across all batches. , Total size of all objects in global_quarantine across all batches. + bytes)
196  qlist_move_all( & temp, & Round-robin FIFO array of batches. [quarantine_tail])
202  If new_tail == QUARANTINE_BATCHES Then new_tail = 0
207  raw_spin_unlock( & quarantine_lock)
210  local_irq_restore(flags)