public inbox for io-uring@vger.kernel.org
 help / color / mirror / Atom feed
From: Gabriel Krisman Bertazi <krisman@suse.de>
To: Jens Axboe <axboe@kernel.dk>
Cc: io-uring@vger.kernel.org,
	 Andrew Morton <akpm@linux-foundation.org>,
	David Hildenbrand <david@kernel.org>,
	 Lorenzo Stoakes <lorenzo.stoakes@oracle.com>,
	 Vlastimil Babka <vbabka@suse.cz>,
	 "Liam R. Howlett" <Liam.Howlett@oracle.com>,
	 Mike Rapoport <rppt@kernel.org>,
	Suren Baghdasaryan <surenb@google.com>,
	 Michal Hocko <mhocko@suse.com>,
	linux-mm@kvack.org
Subject: Re: [PATCH 2/2] io_uring: introduce IORING_OP_MMAP
Date: Mon, 09 Feb 2026 09:36:25 -0500	[thread overview]
Message-ID: <87fr7a9e6u.fsf@mailhost.krisman.be> (raw)
In-Reply-To: <efa7714d-565d-41c4-af85-d7a89e7fa399@kernel.dk> (Jens Axboe's message of "Fri, 30 Jan 2026 08:55:50 -0700")

Jens Axboe <axboe@kernel.dk> writes:

> On 1/29/26 3:11 PM, Gabriel Krisman Bertazi wrote:
>
>> diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h
>> index b5b23c0d5283..e24fe3b00059 100644
>> --- a/include/uapi/linux/io_uring.h
>> +++ b/include/uapi/linux/io_uring.h
>> @@ -74,6 +74,7 @@ struct io_uring_sqe {
>>  		__u32		install_fd_flags;
>>  		__u32		nop_flags;
>>  		__u32		pipe_flags;
>> +		__u32		mmap_flags;
>>  	};
>>  	__u64	user_data;	/* data to be passed back at completion time */
>>  	/* pack this to avoid bogus arm OABI complaints */
>> @@ -303,6 +304,7 @@ enum io_uring_op {
>>  	IORING_OP_PIPE,
>>  	IORING_OP_NOP128,
>>  	IORING_OP_URING_CMD128,
>> +	IORING_OP_MMAP,
>>  
>>  	/* this goes last, obviously */
>>  	IORING_OP_LAST,
>> @@ -1113,6 +1115,14 @@ struct zcrx_ctrl {
>>  	};
>>  };
>>  
>> +struct io_uring_mmap_desc {
>> +	void __user *addr;
>> +	unsigned long len;
>> +	unsigned long pgoff;
>> +	unsigned int prot;
>> +	unsigned int flags;
>> +};
>
> You can't use pointers or unsigned long or unsigned int in a uapi, as

Thanks for the review, Jens.

I went on vacation right after sending this, but I will follow up with a v2 shortly.

-- 
Gabriel Krisman Bertazi

  reply	other threads:[~2026-02-09 14:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-29 22:11 [PATCH 0/2] Introduce IORING_OP_MMAP Gabriel Krisman Bertazi
2026-01-29 22:11 ` [PATCH 1/2] io_uring: Support commands with optional file descriptors Gabriel Krisman Bertazi
2026-01-29 22:11 ` [PATCH 2/2] io_uring: introduce IORING_OP_MMAP Gabriel Krisman Bertazi
2026-01-30  6:03   ` kernel test robot
2026-01-30 15:47     ` Gabriel Krisman Bertazi
2026-01-30 15:55   ` Jens Axboe
2026-02-09 14:36     ` Gabriel Krisman Bertazi [this message]
2026-02-01 17:46 ` [PATCH 0/2] Introduce IORING_OP_MMAP David Hildenbrand (arm)
2026-02-01 18:16   ` Jens Axboe
2026-02-02  9:02     ` David Hildenbrand (arm)
2026-02-02 14:34       ` Jens Axboe
2026-02-04 19:47         ` David Hildenbrand (arm)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fr7a9e6u.fsf@mailhost.krisman.be \
    --to=krisman@suse.de \
    --cc=Liam.Howlett@oracle.com \
    --cc=akpm@linux-foundation.org \
    --cc=axboe@kernel.dk \
    --cc=david@kernel.org \
    --cc=io-uring@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=lorenzo.stoakes@oracle.com \
    --cc=mhocko@suse.com \
    --cc=rppt@kernel.org \
    --cc=surenb@google.com \
    --cc=vbabka@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox