函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:The normal naming convention is simply /dev/pts/<number>; this conforms* to the System V naming convention

函数原型:int devpts_new_index(struct pts_fs_info *fsi)

返回类型:int

参数:

类型参数名称
struct pts_fs_info *fsi
532  index等于负ENOSPC
534  如果atomic_inc_return( & pty_count)大于等于sysctl support for setting limits on the number of Unix98 ptys allocated.* Otherwise one can eat up all kernel memory by opening /dev/ptmx repeatedly.减如果reserve则0否则pty_reserve则转到:out
538  index等于da_alloc_max() - Allocate an unused ID
541  out :
542  如果index小于0则atomic_dec( & pty_count)
544  返回:index