RE: Positive or negative error return codes in rdma-core?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Should rdma-core providers return positive or negative errors?

Yes

Seriously, this varies by provider and call.  Libfabric handles return values from verbs by passing them through a call that does something like this:

if (!ret)
	return 0;
else if (ret == -1)
	return -errno;
else
	return -abs(ret);

The exception is poll_cq.

- Sean




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux