Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp712179pxu; Thu, 15 Oct 2020 14:44:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJr0IqCnn0JO9KMLs1o8V+o1TafTCVFR5MWAyJiAVFFGR9kcEsYkhq69xueaKqkENxzyUM X-Received: by 2002:a17:906:2301:: with SMTP id l1mr387045eja.488.1602798286059; Thu, 15 Oct 2020 14:44:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602798286; cv=none; d=google.com; s=arc-20160816; b=JPdcx7IQHrVHXyGLVZvp8wGzQmaQpgFdn6myN0Y3ccE8lWwVsZfOIfhzMn5NXJ9ZgZ 11Ge7NI833DEoQLbg4RY2fDDBNc5NhyZokLB9iCx7jwIdSUn6q+ZT5ZNG/7uVxV4ABUr 7211UekUqNph5QLSOzYgkHu+zTBcTbjtr/Y5h0GNi7oCkiQJDLnYEEgFdYnpJL68E1Qz YBn+Do6TqaNqhse541Q4ub7LpQSYyEOFyJRi9oZOmfOu1K9+z94WgQERmUB+YtRr5F+3 kiN9cTqYMbIRwH9oeuURX+TYOSKpv+YwnRduqeHo6pzmjg0oEp2KlQu/gjvtneAs7nRg RDKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=fY1SDdSOE9vgbQVlj+o4OQBPE0d3FUxwXztxRh1S/fU=; b=cadKadsBEBiXunBWFmax0pIMOtPPcDn0fhWhpWs0EzBXMK+gLgMuQayRIVpK1xRncl h2GJAbDAW4pelfHoWKvHTbJmHZtnqzey0ecsg6J56037I/iony+2vQXn/w6JD48wLHTB 9r/u5buvotlefe110Xg9dccen6mLTGlhmUSH4ah3urgVKlczWZcZN5ZmVAZKe+3yBLwk o1uuDyw/ZhWCU0SXB3VtLVPKJ9+uQOzecY/IxSrEJk3VIpVoe6aHoo3wxw0nAW788UDT 2uNcKQTtPM0/cMl6cYoR2DXmKkxWu9S0MhmQTkq6CIZXCrkj0L1WY+rh6w1pmvuwLKf6 H7ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=Sb+sw71V; 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=163.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q13si125026edb.308.2020.10.15.14.44.23; Thu, 15 Oct 2020 14:44:46 -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=@163.com header.s=s110527 header.b=Sb+sw71V; 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=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387436AbgJOSJX (ORCPT + 99 others); Thu, 15 Oct 2020 14:09:23 -0400 Received: from m12-12.163.com ([220.181.12.12]:43031 "EHLO m12-12.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727518AbgJOSJX (ORCPT ); Thu, 15 Oct 2020 14:09:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:Message-ID:MIME-Version; bh=fY1SD dSOE9vgbQVlj+o4OQBPE0d3FUxwXztxRh1S/fU=; b=Sb+sw71VU8jWM2CIDKbVy Df8WbcjDLp8U0c3VAUR3+8m1sqgtCrVlq1IdETib6RqadfTrIIASh3M73D714XyK de3rY/1tOJLKxSlbBhMAfI0N4tg4qfbDIL98l4IDa/h6OYMgDQd9p1AAMQdC26Kq XXceS0PDSyRIt2nqVgLJ/4= Received: from localhost (unknown [101.228.30.83]) by smtp8 (Coremail) with SMTP id DMCowADH32sOWYhfUYW+Rw--.35207S2; Thu, 15 Oct 2020 22:13:34 +0800 (CST) Date: Thu, 15 Oct 2020 22:13:34 +0800 From: Hui Su To: paulmck@kernel.org, josh@joshtriplett.org, rostedt@goodmis.org, mathieu.desnoyers@efficios.com, jiangshanlai@gmail.com, joel@joelfernandes.org, corbet@lwn.net, rcu@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: sh_def@163.com Subject: [PATCH] docs/rcu: update the api of call_rcu() Message-ID: <20201015141334.GA20723@rlk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-CM-TRANSID: DMCowADH32sOWYhfUYW+Rw--.35207S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Xr13WF1ruF1fAF1rCw1kGrg_yoWfXrbEvr 45XF4Syw4UtFn7JF4UGrnakryrWayrCF18uw4kXa98ta4xKwsxuF1vvr9Fy348u3ya9r9x G3s3Xr9rJwnxtjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUbrOzDUUUUU== X-Originating-IP: [101.228.30.83] X-CM-SenderInfo: xvkbvvri6rljoofrz/xtbByxa+X1PAPRsUFgAAsL Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org update the api of call_rcu() Signed-off-by: Hui Su --- Documentation/RCU/whatisRCU.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Documentation/RCU/whatisRCU.rst b/Documentation/RCU/whatisRCU.rst index c7f147b8034f..aa7d5ed20da5 100644 --- a/Documentation/RCU/whatisRCU.rst +++ b/Documentation/RCU/whatisRCU.rst @@ -497,8 +497,7 @@ long -- there might be other high-priority work to be done. In such cases, one uses call_rcu() rather than synchronize_rcu(). The call_rcu() API is as follows:: - void call_rcu(struct rcu_head * head, - void (*func)(struct rcu_head *head)); + void call_rcu(struct rcu_head *head, rcu_callback_t func); This function invokes func(head) after a grace period has elapsed. This invocation might happen from either softirq or process context, -- 2.25.1