From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Axboe Subject: Re: man page update (fcntl(2) new set/get write hints) Date: Mon, 28 Aug 2017 10:13:50 -0600 Message-ID: <25656812-990c-3427-9110-89a9163b3e12@kernel.dk> References: <25b8e025-d49b-e033-5ba3-f6967a6a970f@kernel.dk> <02cf5c20-bb36-29e3-01e2-3a90e8272c70@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <02cf5c20-bb36-29e3-01e2-3a90e8272c70-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> Content-Language: en-US Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Florian Weimer , "Michael Kerrisk (man-pages)" Cc: linux-man List-Id: linux-man@vger.kernel.org On 08/28/2017 03:07 AM, Florian Weimer wrote: > On 08/24/2017 12:41 AM, Michael Kerrisk (man-pages) wrote: >> +.TP >> +.BR F_GET_RW_HINT " (\fIuint64_t\fP; since Linux 4.13)" >> +Returns the value of the read/write hint associated with the underlying inode >> +for the file descriptor. >> +.TP >> +.BR F_SET_RW_HINT " (\fIuint64_t\fP; since Linux 4.13)" >> +Sets the read/write hint value associated with the underlying inode for the >> +file descriptor. > > Surely the arguments are of pointer type for reads *and* writes? > > There is no convenient way 32-bit userspace can pass a 64-bit integer > through are variadic dispatcher interface such as ioctl/fcntl/futex. Yes, they are pointers to a u64 for both the get/set side. The return type is 0/Exxxx. -- Jens Axboe -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html