函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:scache_acquire_cookie - Acquire a cookie to represent a cache object*@parent: The cookie that's to be the parent of this one*@def: A description of the cache object, including callback operations*@index_key: The index key for this cookie*@index_key_len:

函数原型:static inline struct fscache_cookie *fscache_acquire_cookie(struct fscache_cookie *parent, const struct fscache_cookie_def *def, const void *index_key, size_t index_key_len, const void *aux_data, size_t aux_data_len, void *netfs_data, loff_t object_size, bool enable)

返回类型:struct fscache_cookie

参数:

类型参数名称
struct fscache_cookie *parent
const struct fscache_cookie_def *def
const void *index_key
size_tindex_key_len
const void *aux_data
size_taux_data_len
void *netfs_data
loff_tobject_size
boolenable
333  如果fscache_cookie_valid(parent)且fscache_cookie_enabled(parent)则返回:__fscache_acquire_cookie(parent, def, index_key, index_key_len, aux_data, aux_data_len, netfs_data, object_size, enable)
338  否则返回:NULL