Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\fscache.h Create Date:2022-07-28 06:39:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:scache_read_or_alloc_page - Read a page from the cache or allocate a block* in which to store it*@cookie: The cookie representing the cache object*@page: The netfs page to fill if possible*@end_io_func: The callback to invoke when and if the page is

Proto:static inline int fscache_read_or_alloc_page(struct fscache_cookie *cookie, struct page *page, fscache_rw_complete_t end_io_func, void *context, gfp_t gfp)

Type:int

Parameter:

TypeParameterName
struct fscache_cookie *cookie
struct page *page
fscache_rw_complete_tend_io_func
void *context
gfp_tgfp
546  If fscache_cookie_valid(cookie) && fscache_cookie_enabled(cookie) Then Return __fscache_read_or_alloc_page(cookie, page, end_io_func, context, gfp)
549  Else Return -ENOBUFS