函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\rdma\ib_verbs.h Create Date:2022-07-27 08:12:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dma_alloc_hw_stats_struct - Helper function to allocate dynamic struct* for drivers.*@names - Array of static const char **@num_counters - How many elements in array*@lifespan - How many milliseconds between updates

函数原型:static inline struct rdma_hw_stats *rdma_alloc_hw_stats_struct(const char *const *names, int num_counters, unsigned long lifespan)

返回类型:struct rdma_hw_stats

参数:

类型参数名称
const char *const *names
intnum_counters
unsigned longlifespan
577  stats等于分配内存并置零
579  如果非stats则返回:NULL
581  names等于names
582  num_counters等于num_counters
583  lifespan等于msecs_to_jiffies: - convert milliseconds to jiffies*@m: time in milliseconds* conversion is done as follows:* - negative values mean 'infinite timeout' (MAX_JIFFY_OFFSET)* - 'too large' values [that would result in larger than
585  返回:stats