Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752399AbbGWHkg (ORCPT ); Thu, 23 Jul 2015 03:40:36 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:35980 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751392AbbGWHk1 (ORCPT ); Thu, 23 Jul 2015 03:40:27 -0400 Message-ID: <55B09A67.7090808@gmail.com> Date: Thu, 23 Jul 2015 09:40:23 +0200 From: "Michael Kerrisk (man-pages)" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Julian Orth CC: mtk.manpages@gmail.com, linux-man@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched_setattr.2: Remove a const attribute References: <1433851901-25034-1-git-send-email-ju.orth@gmail.com> In-Reply-To: <1433851901-25034-1-git-send-email-ju.orth@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1315 Lines: 43 Hello Julian, On 06/09/2015 02:11 PM, Julian Orth wrote: > The attr argument of sched_setattr was documented as const but the > kernel will modify the size field of this struct if it contains an > invalid value. See the documentation of the size field for details. Thanks! Patch applied. Cheers, Michael > --- > man2/sched_setattr.2 | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/man2/sched_setattr.2 b/man2/sched_setattr.2 > index dff8e6d..df14ab4 100644 > --- a/man2/sched_setattr.2 > +++ b/man2/sched_setattr.2 > @@ -31,7 +31,7 @@ set and get scheduling policy and attributes > .nf > .B #include > > -.BI "int sched_setattr(pid_t " pid ", const struct sched_attr *" attr , > +.BI "int sched_setattr(pid_t " pid ", struct sched_attr *" attr , > .BI " unsigned int " flags ); > > .BI "int sched_getattr(pid_t " pid ", struct sched_attr *" attr , -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/