1 #include "defs.h" 2 3 #include DEF_MPERS_TYPE(struct_keyctl_kdf_params) 4 5 #include "keyctl_kdf_params.h" 6 typedef struct keyctl_kdf_params struct_keyctl_kdf_params; 7 8 #include MPERS_DEFS 9 10 MPERS_PRINTER_DECL(int, fetch_keyctl_kdf_params, struct tcb *const tcp, 11 kernel_ulong_t addr, struct strace_keyctl_kdf_params *p) 12 { 13 struct_keyctl_kdf_params kdf; 14 int ret; 15 16 if ((ret = umove(tcp, addr, &kdf))) 17 return ret; 18 19 p->hashname = (kernel_ulong_t) 20 #ifndef IN_MPERS 21 (uintptr_t) 22 #endif 23 kdf.hashname; 24 p->otherinfo = (kernel_ulong_t) 25 #ifndef IN_MPERS 26 (uintptr_t) 27 #endif 28 kdf.otherinfo; 29 p->otherinfolen = kdf.otherinfolen; 30 31 memcpy(p->__spare, kdf.__spare, sizeof(kdf.__spare)); 32 33 return 0; 34 } 35