函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\readdir.c Create Date:2022-07-29 10:36:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:compat_fillonedir

函数原型:static int compat_fillonedir(struct dir_context *ctx, const char *name, int namlen, loff_t offset, u64 ino, unsigned int d_type)

返回类型:int

参数:

类型参数名称
struct dir_context *ctx
const char *name
intnamlen
loff_toffset
u64ino
unsigned intd_type
413  buf等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(ctx, structcompat_readdir_callback, ctx)
415  __userdirent
418  如果result则返回:负EINVAL
420  d_ino等于ino
421  如果d_ino的长度小于ino的长度且d_ino不等于ino
422  result等于负EOVERFLOW
423  返回:负EOVERFLOW
425  result自加
426  dirent等于dirent
427  如果非access_ok - Checks if a user space pointer is valid*@addr: User space pointer to start of block to check*@size: Size of block to check* Context: User context only. This function may sleep if pagefaults are* enabled.(dirent, (unsignedlong)(d_name + namlen + 1) - (unsignedlong)dirent)则转到:efault
431  如果__put_user - Write a simple value into user space, with less checking(d_ino, & d_ino)或__put_user - Write a simple value into user space, with less checking(offset, & d_offset)或__put_user - Write a simple value into user space, with less checking(namlen, & d_namlen)或__copy_to_user(d_name, name, namlen)或__put_user - Write a simple value into user space, with less checking(0, d_name + namlen)则转到:efault
437  返回:0
438  efault :
439  result等于负EFAULT
440  返回:负EFAULT