Lines Matching refs:client_fd
320 int client_fd, ret = 0; in get_sos_wakeup_reason() local
324 client_fd = mngr_open_un(SERVICE_VM_LCS_SOCK, MNGR_CLIENT); in get_sos_wakeup_reason()
325 if (client_fd <= 0) { in get_sos_wakeup_reason()
335 if (mngr_send_msg(client_fd, &req, &ack, SOCK_TIMEOUT) <= 0) in get_sos_wakeup_reason()
340 mngr_close(client_fd); in get_sos_wakeup_reason()
345 static void handle_timer_req(struct mngr_msg *msg, int client_fd, void *param) in handle_timer_req() argument
375 if (client_fd > 0) in handle_timer_req()
376 mngr_send_msg(client_fd, &ack, NULL, 0); in handle_timer_req()
381 int client_fd, ret; in set_sos_timer() local
386 client_fd = mngr_open_un(SERVICE_VM_LCS_SOCK, MNGR_CLIENT); in set_sos_timer()
387 if (client_fd <= 0) { in set_sos_timer()
389 ret = client_fd; in set_sos_timer()
400 mngr_send_msg(client_fd, &req, &ack, SOCK_TIMEOUT); in set_sos_timer()
407 mngr_close(client_fd); in set_sos_timer()
574 static void handle_acrnd_stop(struct mngr_msg *msg, int client_fd, void *param) in handle_acrnd_stop() argument
581 if (client_fd > 0) in handle_acrnd_stop()
582 mngr_send_msg(client_fd, &ack, NULL, 0); in handle_acrnd_stop()
587 void handle_acrnd_resume(struct mngr_msg *msg, int client_fd, void *param) in handle_acrnd_resume() argument
626 if (client_fd > 0) in handle_acrnd_resume()
627 mngr_send_msg(client_fd, &ack, NULL, 0); in handle_acrnd_resume()