Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1218751imm; Fri, 13 Jul 2018 13:59:38 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc97mkvRz5uSl5j4wGaj4hpDWtpFKCJiUCGYbKDSGd6Nm0CUP97RpuSjL2PniNzeh1ahvbk X-Received: by 2002:a17:902:6f02:: with SMTP id w2-v6mr7642478plk.216.1531515578691; Fri, 13 Jul 2018 13:59:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531515578; cv=none; d=google.com; s=arc-20160816; b=DtHgqWFMIS177tWgPXKIJL4w+3AQ4HKDY48GBklk3notIfAUdRL7cyv2hqDOgvMVrv 02QfkZTU1U3xKoqRGLnz3+jrdUwncTndYwKfAfREedXdzZcm/ApiNI1S5Dbb0GW5oL2c uLu+53eztdu2nDQOuHZ64amCi2w2wMtn8KaROOyfjEDoyPSJAJlT/cCvtasfGf4TBXaQ p1tXdoJkrb/hRqpl7eyTQR6BtbMdrIq0y75HprnLdyL0djOiRPIar/DDoNJ1abrV/TwQ GtU5rlqgrUX4I2/96dwBZtMTMw4SWp1GC/Sd2UXV7kjy+RYlka+4oEaaqOq6Pwlw6suQ SI/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=WLSkvGvzaAOFlOYs8sK1Yjd7QvEBD5gjEed/WvDAHx4=; b=EB/4Tnrzvky2QP0pdURaB88pfyDaoeB0xOuud6RVPbS05/l87uVmGTfcsUlJY7i/dL QH/GnTbixoPRRifmTGWKAZeVRM9gvRY5xP50chW1/I7eElSnACDbf3aO18qA0W/LkEnW 6SnyIWAgrilngRpl/8sndS6qwlm6yAS+pmPtV0Z6EKLD4bPMraJ8KSYRENBDlI97xH1g IS1SsR4geA2wLmqN6IyQWLfIBhPwC8jNThGZBuoUS1DvmeRoMNhH/UmOdEmtA37+vPKx yssenG3WTrV6/aABmLyovc7p5wppRDDEgJGWBEfbxxUehFS++tWtE7Tf+IRPUCew5YId Ni9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=O5Li2mW7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e16-v6si22584976pgv.561.2018.07.13.13.59.22; Fri, 13 Jul 2018 13:59:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=O5Li2mW7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731952AbeGMVPE (ORCPT + 99 others); Fri, 13 Jul 2018 17:15:04 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:32649 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731639AbeGMVPE (ORCPT ); Fri, 13 Jul 2018 17:15:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1531515961; x=1563051961; h=from:to:cc:subject:date:message-id; bh=VIdjDFYwGI36sykXvboTMlRt66TuXEgLxKhFdV4qdNU=; b=O5Li2mW7SZ69AQDzYJwTMXrVp9KdYpoqijZ4Dlj9ZV6Gcl3axYZNTFhc Be0jHmG73BXASwMX2JbAm8VNrtTP3S1S32rgzMZxCDIzvxns5LapBR11S 6E9IUSq8k4I0t36hKZ23IbOuvgU0B5NS7x65Ndn1cqievbbNW/ijtDnZO DnaUtjXTZYnd+7Tlwaqlq9atcCUgt9jMLZ4GiGLq+TuWwLV7V0fvOE2bP ka6jdwMYQEM8XJSSJIEBbaKeVAkprmYBzwddpSW7FGy7guQ+1IRw0mtro j37ev7PwuxNPXnYcouQ1zAiopKJbeGNUk7TN2i4+zU6cvJ0b/kMwiBAEY Q==; X-IronPort-AV: E=Sophos;i="5.51,349,1526313600"; d="scan'208";a="180964166" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 14 Jul 2018 05:05:59 +0800 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP; 13 Jul 2018 13:47:30 -0700 Received: from penguito-adamm.sdcorp.global.sandisk.com ([10.11.47.13]) by uls-op-cesaip01.wdc.com with ESMTP; 13 Jul 2018 13:58:46 -0700 From: adam.manzanares@wdc.com To: mtk.manpages@gmail.com Cc: jmoyer@redhat.com, rgoldwyn@suse.com, linux-man@vger.kernel.org, linux-kernel@vger.kernel.org, Adam Manzanares Subject: [PATCH] io_submit.2: Add IOCB_FLAG_IOPRIO Date: Fri, 13 Jul 2018 13:58:31 -0700 Message-Id: <20180713205831.8134-1-adam.manzanares@wdc.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Adam Manzanares The newly added IOCB_FLAG_IOPRIO aio_flag introduces new behaviors and return values. The details of this new feature are posted here: https://lkml.org/lkml/2018/5/22/809 Signed-off-by: Adam Manzanares --- man2/io_submit.2 | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/man2/io_submit.2 b/man2/io_submit.2 index d17e3122a..15e1ecdea 100644 --- a/man2/io_submit.2 +++ b/man2/io_submit.2 @@ -164,14 +164,26 @@ This is the size of the buffer pointed to by This is the file offset at which the I/O operation is to be performed. .TP .I aio_flags -This is the flag to be passed iocb structure. -The only valid value is -.BR IOCB_FLAG_RESFD , -which indicates that the asynchronous I/O control must signal the file +This is the set of flags associated with the iocb structure. +The valid values are: +.RS +.TP +.BR IOCB_FLAG_RESFD +Asynchronous I/O control must signal the file descriptor mentioned in .I aio_resfd upon completion. .TP +.BR IOCB_FLAG_IOPRIO " (since Linux 4.18)" +.\" commit d9a08a9e616beeccdbd0e7262b7225ffdfa49e92 +Interpret the +.I aio_reqprio +field as an +.B IOPRIO_VALUE +as defined by +.IR linux/ioprio.h. +.RE +.TP .I aio_resfd The file descriptor to signal in the event of asynchronous I/O completion. .SH RETURN VALUE @@ -196,13 +208,21 @@ The AIO context specified by \fIctx_id\fP is invalid. \fInr\fP is less than 0. The \fIiocb\fP at .I *iocbpp[0] -is not properly initialized, -or the operation specified is invalid for the file descriptor -in the \fIiocb\fP. +is not properly initialized, the operation specified is invalid for the file +descriptor in the \fIiocb\fP, or the value in the +.I aio_reqprio +field is invalid. .TP .B ENOSYS .BR io_submit () is not implemented on this architecture. +.TP +.B EPERM +The aio_reqprio field is set with the class +.B IOPRIO_CLASS_RT +, but the submitting context does not have the +.B CAP_SYS_ADMIN +privilege. .SH VERSIONS .PP The asynchronous I/O system calls first appeared in Linux 2.5. -- 2.17.1