Function report |
Source Code:kernel\locking\lockdep.c |
Create Date:2022-07-28 09:49:49 |
Last Modify:2020-03-17 14:16:01 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Initialize a lock instance's lock-class mapping info:
Proto:void lockdep_init_map(struct lockdep_map *lock, const char *name, struct lock_class_key *key, int subclass)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct lockdep_map * | lock | |
const char * | name | |
struct lock_class_key * | key | |
int | subclass |
3714 | When i < NR_LOCKDEP_CACHING_CLASSES cycle class_cache[i] = NULL |
3724 | If DEBUG_LOCKS_WARN_ON(!name) Then |
3725 | name = "NULL" |
3726 | Return |
3734 | If DEBUG_LOCKS_WARN_ON(!key) Then Return |
3740 | If Not Is this the address of a static object: && Not Check whether a key has been registered as a dynamic key. Then |
3743 | DEBUG_LOCKS_WARN_ON(1) |
3744 | Return |
3751 | If subclass Then |
3754 | If DEBUG_LOCKS_WARN_ON(lockdep_recursion) Then Return |
3757 | raw_local_irq_save(flags) |
3758 | lockdep_recursion = 1 |
3760 | lockdep_recursion = 0 |
3761 | raw_local_irq_restore(flags) |
Name | Describe |
---|---|
bucket_table_alloc | |
__alloc_bucket_spinlocks | Allocate an array of spinlocks to be accessed by a hash. Two arguments* indicate the number of elements to allocate in the array. max_size* gives the maximum number of elements to allocate. cpu_mult gives* the number of locks per CPU to allocate |
__init_rwsem | Initialize an rwsem: |
debug_mutex_init |
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 |