Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\file.c Create Date:2022-07-28 20:08:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:find_next_fd

Proto:static unsigned int find_next_fd(struct fdtable *fdt, unsigned int start)

Type:unsigned int

Parameter:

TypeParameterName
struct fdtable *fdt
unsigned intstart
465  maxfd = max_fds
466  maxbit = maxfd / BITS_PER_LONG
467  bitbit = start / BITS_PER_LONG
469  bitbit = Find the next zero bit in a memory region. * BITS_PER_LONG
470  If bitbit > maxfd Then Return maxfd
472  If bitbit > start Then start = bitbit
474  Return Find the next zero bit in a memory region.
Caller
NameDescribe
__alloc_fdallocate a file descriptor, mark it busy.