Function report | 
Source Code:fs\locks.c | 
Create Date:2022-07-28 20:25:39 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:lock_get_status
Proto:static void lock_get_status(struct seq_file *f, struct file_lock *fl, loff_t id, char *pfx)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct seq_file * | f | |
| struct file_lock * | fl | |
| loff_t | id | |
| char * | pfx | 
| 2798 | proc_pidns = s_fs_info | 
| 2807 | If (fl_file != NULL) Then inode = locks_inode(fl_file) | 
| 2810 | seq_printf(f, "%lld:%s ", id, pfx) | 
| 2812 | If fl_flags & trying to lock, just looking Then seq_puts(f, "ACCESS") | 
| 2819 | seq_printf(f, " %s ", (inode == NULL) ? "*NOINODE*" : mandatory_lock(inode) ? "MANDATORY" : "ADVISORY ") | 
| 2825 | Else | 
| 2829 | If fl_flags & NFSv4 delegation Then seq_puts(f, "DELEG ") | 
| 2834 | If lease_breaking(fl) Then seq_puts(f, "BREAKING ") | 
| 2840 | Else | 
| 2844 | seq_printf(f, "%s ", (fl_type & LOCK_READ) ? (fl_type & LOCK_WRITE) ? "RW " : "READ " : (fl_type & LOCK_WRITE) ? "WRITE" : "NONE ") | 
| 2848 | Else | 
| 2854 | If inode Then | 
| 2856 | seq_printf(f, "%d %02x:%02x:%lu ", fl_pid, MAJOR(s_dev), MINOR(s_dev), Stat data, not accessed from path walking ) | 
| 2859 | Else | 
| 2860 | seq_printf(f, "%d <none>:0 ", fl_pid) | 
| 2863 | If fl_end == OFFSET_MAX Then seq_printf(f, "%Ld EOF\n", fl_start) | 
| 2865 | Else seq_printf(f, "%Ld %Ld\n", fl_start, fl_end) | 
| 2867 | Else | 
| Name | Describe | 
|---|---|
| locks_show | |
| __show_fd_locks | 
| 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  |