Received: by 2002:aa6:da0e:0:b029:115:a171:fe4c with SMTP id z14csp1260313lkb; Wed, 7 Jul 2021 02:48:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwl3f2NPOAn7jR7lPL4wfpkJc/JK175HtjXDlWTJPxGL5ALZ/CwHi8Wlt00PvIpEkODDDo X-Received: by 2002:a05:6402:51d0:: with SMTP id r16mr28408963edd.378.1625651303942; Wed, 07 Jul 2021 02:48:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625651303; cv=none; d=google.com; s=arc-20160816; b=qHjQd8oPvLfqRN9cysS0HuVlC7fvYhV3+B0znnAfKnoe0vh8yLwcI9EotKaR6QTahp ueBh10l5Kl9S4crDa63PWRHiHLe8nlhhIdcC1BiQbRvsbMTmmVbMhDSkXbZ8ahxQwkAA DaZSaRp6Rj5EFfIDPrlb72DUVowVO0jZ8Bm1bMthaoASR76CIXAJ8h/O/hZabZNthusi y74yglrwN/LvlZ24oQ/UOSAqKicz0Wi4I9GMi3WnMW2OVL4P5vlOoT9wtjCAkYGWmZ+R T+MUvXBUkjvHXKzu8smyU+GiDd+ogeQQoFrcterw9jYk6rIW7MSvNaqPBS4okBe9pg9Q kNIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=cRhesyWUivXLxczgsLtk6gE/w390EMKhBeqxLadHP1U=; b=nBATyPPVNT/lZP9XWpS7NC0txOD1kOa9yMA0pRzvQGECzTeGmftheRsJOp9gveuliH Ns7HCV+HQb7hGGJX51lV52Glo2Xn1WMnG85S9rbkLxLjBUmX2nA3a6y0ai3oyX21stNl hsh5l9Bx7YWJL84kC1VYUbxi/3bvFHoPa5mLli+RFB7BaENq6MllR4f1jQfOMxqHriZT 69ajv79YTni3gVZeyh3/tqefFUmyH/l2Ceq7Q6I1UBuDutmCFgjap6oytS9raZwflaQp 8bGFC8ptrHDoRZqzJkw8oRAxjSBejJsNVJMD3y9hXC+kqAKJeT4BicqHUCESVRqDs/kW i4Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cqbAN+Wb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ig2si17725865ejc.549.2021.07.07.02.48.00; Wed, 07 Jul 2021 02:48:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cqbAN+Wb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231175AbhGGJtn (ORCPT + 99 others); Wed, 7 Jul 2021 05:49:43 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:26047 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230429AbhGGJtm (ORCPT ); Wed, 7 Jul 2021 05:49:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625651222; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cRhesyWUivXLxczgsLtk6gE/w390EMKhBeqxLadHP1U=; b=cqbAN+WbGaGqRtPAni1xAPDUAS5e7UcDrspMkcMfoPMQefM2zuOBBmFXNAJVpytF+vidKl FEv7X5FiOz7QaBNzUDYig0FetT8BVe5rvJ9Qm8O9LIKGOL0LVOJEYK1sfBBJtwfYBHwGJW 4/YE5GYO+FWQDIc9bWVeOA9MEfnVb5w= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-352-LC5DqymDMWaVfVngzz1ueg-1; Wed, 07 Jul 2021 05:46:58 -0400 X-MC-Unique: LC5DqymDMWaVfVngzz1ueg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 37D34804140; Wed, 7 Jul 2021 09:46:56 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-115-5.ams2.redhat.com [10.36.115.5]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F0C9319C44; Wed, 7 Jul 2021 09:46:43 +0000 (UTC) From: Florian Weimer To: Suren Baghdasaryan Cc: akpm@linux-foundation.org, mhocko@kernel.org, mhocko@suse.com, rientjes@google.com, willy@infradead.org, hannes@cmpxchg.org, guro@fb.com, riel@surriel.com, minchan@kernel.org, christian@brauner.io, hch@infradead.org, oleg@redhat.com, david@redhat.com, jannh@google.com, shakeelb@google.com, timmurray@google.com, linux-api@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@android.com Subject: Re: [PATCH 1/1] mm: introduce process_reap system call References: <20210623192822.3072029-1-surenb@google.com> Date: Wed, 07 Jul 2021 11:46:42 +0200 In-Reply-To: <20210623192822.3072029-1-surenb@google.com> (Suren Baghdasaryan's message of "Wed, 23 Jun 2021 12:28:22 -0700") Message-ID: <87sg0qa22l.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Suren Baghdasaryan: > The API is as follows, > > int process_reap(int pidfd, unsigned int flags); > > DESCRIPTION > The process_reap() system call is used to free the memory of a > dying process. > > The pidfd selects the process referred to by the PID file > descriptor. > (See pidofd_open(2) for further information) > > The flags argument is reserved for future use; currently, this > argument must be specified as 0. > > RETURN VALUE > On success, process_reap() returns 0. On error, -1 is returned > and errno is set to indicate the error. I think the manual page should mention what it means for a process to be =E2=80=9Cdying=E2=80=9D, and how to move a process to this state. Thanks, Florian