Lines Matching refs:params
114 struct lmk_procprio* params) { in lmkd_pack_get_procprio() argument
115 params->pid = (pid_t)ntohl(packet[1]); in lmkd_pack_get_procprio()
116 params->uid = (uid_t)ntohl(packet[2]); in lmkd_pack_get_procprio()
117 params->oomadj = ntohl(packet[3]); in lmkd_pack_get_procprio()
119 params->ptype = field_count > 3 ? (enum proc_type)ntohl(packet[4]) : PROC_TYPE_APP; in lmkd_pack_get_procprio()
126 static inline size_t lmkd_pack_set_procprio(LMKD_CTRL_PACKET packet, struct lmk_procprio* params) { in lmkd_pack_set_procprio() argument
128 packet[1] = htonl(params->pid); in lmkd_pack_set_procprio()
129 packet[2] = htonl(params->uid); in lmkd_pack_set_procprio()
130 packet[3] = htonl(params->oomadj); in lmkd_pack_set_procprio()
131 packet[4] = htonl((int)params->ptype); in lmkd_pack_set_procprio()
145 struct lmk_procremove* params) { in lmkd_pack_get_procremove() argument
146 params->pid = (pid_t)ntohl(packet[1]); in lmkd_pack_get_procremove()
154 struct lmk_procremove* params) { in lmkd_pack_set_procremove() argument
156 packet[1] = htonl(params->pid); in lmkd_pack_set_procremove()
180 struct lmk_getkillcnt* params) { in lmkd_pack_get_getkillcnt() argument
181 params->min_oomadj = ntohl(packet[1]); in lmkd_pack_get_getkillcnt()
182 params->max_oomadj = ntohl(packet[2]); in lmkd_pack_get_getkillcnt()
190 struct lmk_getkillcnt* params) { in lmkd_pack_set_getkillcnt() argument
192 packet[1] = htonl(params->min_oomadj); in lmkd_pack_set_getkillcnt()
193 packet[2] = htonl(params->max_oomadj); in lmkd_pack_set_getkillcnt()
223 static inline void lmkd_pack_get_subscribe(LMKD_CTRL_PACKET packet, struct lmk_subscribe* params) { in lmkd_pack_get_subscribe() argument
224 params->evt_type = (enum async_event_type)ntohl(packet[1]); in lmkd_pack_get_subscribe()
277 struct lmk_update_props_reply* params) { in lmkd_pack_get_update_props_repl() argument
278 params->result = ntohl(packet[1]); in lmkd_pack_get_update_props_repl()