Home
last modified time | relevance | path

Searched refs:sockfd (Results 1 – 1 of 1) sorted by relevance

/drivers/hdf_core/adapter/uhdf2/manager/src/
Ddevmgr_uevent.c338 …int32_t sockfd = socket(PF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC | SOCK_NONBLOCK, NETLINK_KOBJECT_UEV… in DevMgrUeventSocketInit() local
339 if (sockfd < 0) { in DevMgrUeventSocketInit()
345 if (setsockopt(sockfd, SOL_SOCKET, SO_RCVBUF, &buffSize, sizeof(buffSize)) != 0) { in DevMgrUeventSocketInit()
347 close(sockfd); in DevMgrUeventSocketInit()
352 if (setsockopt(sockfd, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) != 0) { in DevMgrUeventSocketInit()
354 close(sockfd); in DevMgrUeventSocketInit()
358 if (bind(sockfd, (struct sockaddr *)&addr, sizeof(addr)) < 0) { in DevMgrUeventSocketInit()
360 close(sockfd); in DevMgrUeventSocketInit()
364 return sockfd; in DevMgrUeventSocketInit()