MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mana_fd_set_non_blocking

Function mana_fd_set_non_blocking

dpdk/drivers/net/mana/mana.c:1060–1070  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1058}
1059
1060int
1061mana_fd_set_non_blocking(int fd)
1062{
1063 int ret = fcntl(fd, F_GETFL);
1064
1065 if (ret != -1 && !fcntl(fd, F_SETFL, ret | O_NONBLOCK))
1066 return 0;
1067
1068 rte_errno = errno;
1069 return -rte_errno;
1070}
1071
1072static int
1073mana_intr_install(struct rte_eth_dev *eth_dev, struct mana_priv *priv)

Callers 2

mana_start_rx_queuesFunction · 0.85
mana_intr_installFunction · 0.85

Calls 1

fcntlFunction · 0.50

Tested by

no test coverage detected