Function report |
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 activity | Download SCCT | Chinese |
Name:devpts_pty_new -- create a new inode in /dev/pts/*@ptmx_inode: inode of the master*@device: major+minor of the node to be created*@index: used as a name of the node*@priv: what's given back by devpts_get_priv* The created inode is returned
Proto:struct dentry *devpts_pty_new(struct pts_fs_info *fsi, int index, void *priv)
Type:struct dentry
Parameter:
Type | Parameter | Name |
---|---|---|
struct pts_fs_info * | fsi | |
int | index | |
void * | priv |
572 | opts = mount_opts |
574 | inode = obtain an inode |
579 | i_uid = If setuid Then uid Else current_fsuid() |
580 | i_gid = If setgid Then gid Else current_fsgid() |
582 | init_special_inode(inode, S_IFCHR | mode, MKDEV(UNIX98_PTY_SLAVE_MAJOR, index)) |
586 | dentry = d_alloc_name(root, s) |
587 | If dentry Then |
588 | fs-specific data = priv |
591 | Else |
592 | put an inode |
596 | Return dentry |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |