Function report |
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 activity | Download SCCT | Chinese |
Name:quarantine_put
Proto:void quarantine_put(struct kasan_free_meta *info, struct kmem_cache *cache)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
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 ) |
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) |
201 | new_tail = quarantine_tail + 1 |
202 | If new_tail == QUARANTINE_BATCHES Then new_tail = 0 |
204 | If new_tail != quarantine_head Then quarantine_tail = new_tail |
207 | raw_spin_unlock( & quarantine_lock) |
210 | local_irq_restore(flags) |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |