函数名称: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
函数原型:int __alloc_bucket_spinlocks(spinlock_t **locks, unsigned int *locks_mask, size_t max_size, unsigned int cpu_mult, gfp_t gfp, const char *name, struct lock_class_key *key)
返回类型:int
参数:
|
类型 | 参数 | 名称 |
|---|
| spinlock_t ** | locks | |
| unsigned int * | locks_mask | |
| size_t | max_size | |
| unsigned int | cpu_mult | |
| gfp_t | gfp | |
| const char * | name | |
| struct lock_class_key * | key | |