Lines Matching refs:tcp

57 printflock64(struct tcb *const tcp, const kernel_ulong_t addr, const int getlk)  in printflock64()  argument
61 if (fetch_struct_flock64(tcp, addr, &fl)) in printflock64()
66 printflock(struct tcb *const tcp, const kernel_ulong_t addr, const int getlk) in printflock() argument
70 if (fetch_struct_flock(tcp, addr, &fl)) in printflock()
75 print_f_owner_ex(struct tcb *const tcp, const kernel_ulong_t addr) in print_f_owner_ex() argument
79 if (umove_or_printaddr(tcp, addr, &owner)) in print_f_owner_ex()
88 print_fcntl(struct tcb *tcp) in print_fcntl() argument
90 const unsigned int cmd = tcp->u_arg[1]; in print_fcntl()
95 printflags(fdflags, tcp->u_arg[2], "FD_???"); in print_fcntl()
99 tprintf(", %" PRI_kld, tcp->u_arg[2]); in print_fcntl()
103 tprintf(", %" PRI_kld, tcp->u_arg[2]); in print_fcntl()
107 tprint_open_modes(tcp->u_arg[2]); in print_fcntl()
112 printflock(tcp, tcp->u_arg[2], 0); in print_fcntl()
117 printflock64(tcp, tcp->u_arg[2], 0); in print_fcntl()
121 print_f_owner_ex(tcp, tcp->u_arg[2]); in print_fcntl()
125 printflags64(notifyflags, tcp->u_arg[2], "DN_???"); in print_fcntl()
129 printxval64(lockfcmds, tcp->u_arg[2], "F_???"); in print_fcntl()
133 printflags64(f_seals, tcp->u_arg[2], "F_SEAL_???"); in print_fcntl()
137 tprints(signame(tcp->u_arg[2])); in print_fcntl()
143 if (entering(tcp) || syserror(tcp) || tcp->u_rval == 0) in print_fcntl()
145 tcp->auxstr = sprintflags("flags ", fdflags, in print_fcntl()
146 (kernel_ulong_t) tcp->u_rval); in print_fcntl()
149 if (entering(tcp) || syserror(tcp)) in print_fcntl()
151 tcp->auxstr = sprint_open_modes(tcp->u_rval); in print_fcntl()
154 if (entering(tcp)) in print_fcntl()
157 printflock(tcp, tcp->u_arg[2], 1); in print_fcntl()
160 if (entering(tcp)) in print_fcntl()
163 printflock64(tcp, tcp->u_arg[2], 1); in print_fcntl()
166 if (entering(tcp)) in print_fcntl()
169 print_f_owner_ex(tcp, tcp->u_arg[2]); in print_fcntl()
172 if (entering(tcp) || syserror(tcp)) in print_fcntl()
174 tcp->auxstr = xlookup(lockfcmds, (kernel_ulong_t) tcp->u_rval); in print_fcntl()
177 if (entering(tcp) || syserror(tcp) || tcp->u_rval == 0) in print_fcntl()
179 tcp->auxstr = sprintflags("seals ", f_seals, in print_fcntl()
180 (kernel_ulong_t) tcp->u_rval); in print_fcntl()
183 if (entering(tcp) || syserror(tcp) || tcp->u_rval == 0) in print_fcntl()
185 tcp->auxstr = signame(tcp->u_rval); in print_fcntl()
188 tprintf(", %#" PRI_klx, tcp->u_arg[2]); in print_fcntl()
196 if (entering(tcp)) { in SYS_FUNC()
197 printfd(tcp, tcp->u_arg[0]); in SYS_FUNC()
199 printxval(fcntlcmds, tcp->u_arg[1], "F_???"); in SYS_FUNC()
201 return print_fcntl(tcp); in SYS_FUNC()
206 const unsigned int cmd = tcp->u_arg[1]; in SYS_FUNC()
207 if (entering(tcp)) { in SYS_FUNC()
208 printfd(tcp, tcp->u_arg[0]); in SYS_FUNC()
216 printflock64(tcp, tcp->u_arg[2], 0); in SYS_FUNC()
219 if (exiting(tcp)) { in SYS_FUNC()
221 printflock64(tcp, tcp->u_arg[2], 1); in SYS_FUNC()
225 return print_fcntl(tcp); in SYS_FUNC()