Searched refs:socketFd (Results 1 – 1 of 1) sorted by relevance
/drivers/peripheral/audio/hal/hdi_binder/server/src/ |
D | hdf_audio_pnp_uevent.c | 606 int socketFd = -1; in AudioPnpUeventOpen() local 619 socketFd = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT); in AudioPnpUeventOpen() 620 if (socketFd < 0) { in AudioPnpUeventOpen() 625 if (setsockopt(socketFd, SOL_SOCKET, SO_RCVBUF, &buffSize, sizeof(buffSize)) != 0) { in AudioPnpUeventOpen() 627 close(socketFd); in AudioPnpUeventOpen() 631 if (setsockopt(socketFd, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) != 0) { in AudioPnpUeventOpen() 633 close(socketFd); in AudioPnpUeventOpen() 637 if (bind(socketFd, (struct sockaddr *)&addr, sizeof(addr)) < 0) { in AudioPnpUeventOpen() 639 close(socketFd); in AudioPnpUeventOpen() 643 *fd = socketFd; in AudioPnpUeventOpen() [all …]
|