Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
i4
manycore
syscall-eval
Commits
baf3ec25
Commit
baf3ec25
authored
Aug 03, 2021
by
Florian Fischer
Browse files
fix io_uring setup error reporting
parent
47436330
Pipeline
#66562
passed with stage
in 1 minute and 32 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
io_uring.c
View file @
baf3ec25
...
...
@@ -10,7 +10,7 @@ struct io_uring ring;
void
init
(
__attribute__
((
unused
))
int
fd
)
{
int
res
=
io_uring_queue_init
(
1
,
&
ring
,
0
);
if
(
res
<
0
)
{
errno
=
res
;
errno
=
-
res
;
err
(
EXIT_FAILURE
,
"io_uring_setup failed"
);
}
}
...
...
io_uring.h
View file @
baf3ec25
...
...
@@ -26,7 +26,7 @@ struct io_uring_sqe* sqpoll_ring_get_sqe(struct io_uring* ring) {
void
io_uring_init_sqpoll
(
struct
io_uring
*
ring
)
{
int
res
=
io_uring_queue_init
(
SQPOLL_RING_ENTRIES
,
ring
,
IORING_SETUP_SQPOLL
);
if
(
res
<
0
)
{
errno
=
res
;
errno
=
-
res
;
err
(
EXIT_FAILURE
,
"io_uring_setup failed"
);
}
}
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