Lines Matching refs:packet
82 struct crash_packet packet = {0}; in usercrashd_connect() local
95 packet.packet_type = kDumpRequest; in usercrashd_connect()
96 packet.pid = pid; in usercrashd_connect()
97 strncpy(packet.name, name, COMM_NAME_LEN); in usercrashd_connect()
98 packet.name[COMM_NAME_LEN - 1] = '\0'; in usercrashd_connect()
103 if (write(sockfd, &packet, sizeof(packet)) != in usercrashd_connect()
104 sizeof(packet)) { in usercrashd_connect()
111 rc = recv_fd(sockfd, &packet, sizeof(packet), in usercrashd_connect()
118 } else if (rc != sizeof(packet)) { in usercrashd_connect()
120 LOGE("length (expected %lu, got %ld)\n", sizeof(packet), rc); in usercrashd_connect()
123 if (packet.packet_type != kPerformDump) { in usercrashd_connect()
124 LOGE("unexpected dump response:%d\n", packet.packet_type); in usercrashd_connect()
160 struct crash_packet packet = {0}; in usercrashd_notify_completion() local
162 packet.packet_type = kCompletedDump; in usercrashd_notify_completion()
167 if (write(usercrashd_socket, &packet, in usercrashd_notify_completion()
168 sizeof(packet)) != sizeof(packet)) { in usercrashd_notify_completion()