Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion man/io_uring_register.2
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ or replacing an existing entry with a new existing entry.
.I arg
must contain a pointer to a
.I struct
.IR io_uring_files_update ,
.IR io_uring_rsrc_update ,
which contains
an offset on which to start the update, and an array of file descriptors to
use for the update.
Expand Down
4 changes: 2 additions & 2 deletions src/register.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ int io_uring_register_files_update(struct io_uring *ring, unsigned off,
{
liburing_sanitize_address(files);

struct io_uring_files_update up = {
struct io_uring_rsrc_update up = {
.offset = off,
.fds = (unsigned long) files,
.data = (unsigned long) files,
};

return do_register(ring, IORING_REGISTER_FILES_UPDATE, &up, nr_files);
Expand Down