SPDX-License-Identifier: LGPL-2.0-or-later
#include <fcntl.h> #include <unistd.h> #include <liburing.h>"void io_uring_prep_linkat(struct io_uring_sqe *" sqe "," " int " olddirfd "," " const char *" oldpath "," " int " newdirfd "," " const char *" newpath "," " int " flags ");"
"void io_uring_prep_link(struct io_uring_sqe *" sqe "," " const char *" oldpath "," " const char *" newpath "," " int " flags ");"
The io_uring_prep_linkat (3) function prepares a linkat request. The submission queue entry sqe is setup to use the old directory file descriptor pointed to by olddirfd and old path pointed to by oldpath with the new directory file descriptor pointed to by newdirfd and the new path pointed to by newpath and using the specified flags in flags . The io_uring_prep_link (3) function prepares a link request. The submission queue entry sqe is setup to use the old path pointed to by oldpath and the new path pointed to by newpath , both relative to the current working directory and using the specified flags in flags . These functions prepare an async linkat (2) or link (2) request. See those man pages for details.