Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:int devpts_new_index(struct pts_fs_info *fsi)

Type:int

Parameter:

TypeParameterName
struct pts_fs_info *fsi
532  index = -ENOSPC
534  If 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. - If reserve Then 0 Else pty_reserve Then Go to out
538  index = da_alloc_max() - Allocate an unused ID
541  out :
542  If index < 0 Then atomic_dec( & pty_count)
544  Return index