Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cmsos
worksuite
Commits
cf8b9cdb
Commit
cf8b9cdb
authored
Oct 22, 2021
by
Dainius Simelevicius
Browse files
references #271: correctly interpreting return values and errno of ib verb functions
parent
1e8c45a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
ibvla/src/common/Utils.cc
View file @
cf8b9cdb
...
...
@@ -41,7 +41,23 @@ std::list<ibvla::Device> ibvla::getDeviceList ()
if
(
devlist
==
0
)
{
std
::
stringstream
ss
;
ss
<<
"Failure to get device list, errno = "
<<
::
strerror
(
errno
);
ss
<<
"Failed to get device list: "
;
if
(
errno
==
EPERM
)
{
ss
<<
"Permission denied, "
<<
strerror
(
errno
)
<<
"("
<<
errno
<<
")"
;
}
else
if
(
errno
==
ENOMEM
)
{
ss
<<
"Insufficient memory to complete the operation, "
<<
strerror
(
errno
)
<<
"("
<<
errno
<<
")"
;
}
else
if
(
errno
==
ENOSYS
)
{
ss
<<
"No kernel support for RDMA, "
<<
strerror
(
errno
)
<<
"("
<<
errno
<<
")"
;
}
else
{
ss
<<
"Not understood error, errno = "
<<
errno
;
}
XCEPT_RAISE
(
ibvla
::
exception
::
Exception
,
ss
.
str
());
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment