Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp339308ybz; Tue, 21 Apr 2020 10:00:00 -0700 (PDT) X-Google-Smtp-Source: APiQypJ62Cig6xsE/9zKLTSpEMTnEIjErcWKBhnEiN2XSk+KUMQF3DTJXkRkDJ9poXl5RAqRZcLZ X-Received: by 2002:a17:906:6992:: with SMTP id i18mr21261333ejr.293.1587488400002; Tue, 21 Apr 2020 10:00:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587488399; cv=none; d=google.com; s=arc-20160816; b=ojRpPFFUr5CMT5asuBjKSppsPO1aulSXhM8JjkeXPvt6FjEKcuLtcbHRFNKWlkh7L1 EbPcxpTZo4veOJ5ngtVtZCcB85qJUYERhzZIQYX3MAEF/cLaxxM8r57mnzBXZY+PeV8Z N0ObfnxVOzutLtQz4qbYRb8Iv9JA7diopxT0R/MmeGFSqsAcuN67L8DEdILAj62fR8Am M7yneDUMELZbSoAA4vK/XqLlEZe7+Mj0S2xf87X0zVjrhDPqxXuE5vjKVo1QpaYWvPgT nP9sKDFO6tmCYKOBsPPVFmBLKbCSqk1m/SdPKB0HQ2fKxzD+Jy2vS+PIWWK151AilmVd DdhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zQh99sijudTMMPdF+RmsfuLJEfqguHey23PYh6J0WO8=; b=AHj+SOOD+9gVOUc/gLbKlKGBOkmTBywnOsMTzahnvDYxABrKSuJqiYfst+6cfzK4NP eO5Mmm/dvE0sXRQMz63baFJkdtH8CMhgAntTpPKq6ZyvUwcRpNis4FDN+bLCCz0emqyz mysdF+R0PYlr3WTlXMKkVgPmQ43YISpTKarmRUwHSB5BAmM9016tQS3UynjseChJrfBC 7mq0BS7IPrX3X6F3xULxw8YxKv0TTUPA/rQo23ZpZKWBqkBddKqYnLKLjrMta3xLbNze hg0WsKNwhxIt4dcElUcRD5dj15jtJ2EIoDsOXyDUdRxu6WCXp2xmxPkLg1L2Ns1l2LV9 EHbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=J9FEnG+e; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n26si1882190ejy.188.2020.04.21.09.59.36; Tue, 21 Apr 2020 09:59:59 -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=@kernel.org header.s=default header.b=J9FEnG+e; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729457AbgDUQz7 (ORCPT + 99 others); Tue, 21 Apr 2020 12:55:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:57288 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729144AbgDUQyr (ORCPT ); Tue, 21 Apr 2020 12:54:47 -0400 Received: from mail.kernel.org (ip5f5ad4d8.dynamic.kabel-deutschland.de [95.90.212.216]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9190D2166E; Tue, 21 Apr 2020 16:54:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587488084; bh=KsoaNwgIS/FbS/tQMuw9JxqzFKt+s5yExdop2Zs3cCo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J9FEnG+eWDchYmB/irYq2m/ChCSWoeBWqEUCy7l7mBxOFWPxzPvBTXb+W+eSTa39Q 7mfcXPgKSCWlW+xDA2xaAwndbFj+c/kJMc1se9McuWksojSkjt4qq57cK5ZjaRwSXm +xs903OGR08LqozjMvKHOuhi6B9w4dWmMg1xsMSA= Received: from mchehab by mail.kernel.org with local (Exim 4.92.3) (envelope-from ) id 1jQwAU-00CmFA-Qp; Tue, 21 Apr 2020 18:54:42 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet Subject: [PATCH v2 23/29] docs: filesystems: convert spufs/spu_create.txt to ReST Date: Tue, 21 Apr 2020 18:54:34 +0200 Message-Id: X-Mailer: git-send-email 2.25.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This file is at groff output format. Manually convert it to ReST format, trying to preserve a similar output after parsed. Signed-off-by: Mauro Carvalho Chehab --- Documentation/filesystems/index.rst | 1 + Documentation/filesystems/spufs/index.rst | 11 ++++ .../spufs/{spu_create.txt => spu_create.rst} | 52 ++++++++++++------- 3 files changed, 44 insertions(+), 20 deletions(-) create mode 100644 Documentation/filesystems/spufs/index.rst rename Documentation/filesystems/spufs/{spu_create.txt => spu_create.rst} (90%) diff --git a/Documentation/filesystems/index.rst b/Documentation/filesystems/index.rst index 56fd515af5ef..74b1e18af37e 100644 --- a/Documentation/filesystems/index.rst +++ b/Documentation/filesystems/index.rst @@ -107,6 +107,7 @@ Documentation for filesystem implementations. ramfs-rootfs-initramfs relay romfs + spufs/index squashfs sysfs sysv-fs diff --git a/Documentation/filesystems/spufs/index.rst b/Documentation/filesystems/spufs/index.rst new file mode 100644 index 000000000000..39553c6ebefd --- /dev/null +++ b/Documentation/filesystems/spufs/index.rst @@ -0,0 +1,11 @@ +.. SPDX-License-Identifier: GPL-2.0 + +============== +SPU Filesystem +============== + + +.. toctree:: + :maxdepth: 1 + + spu_create diff --git a/Documentation/filesystems/spufs/spu_create.txt b/Documentation/filesystems/spufs/spu_create.rst similarity index 90% rename from Documentation/filesystems/spufs/spu_create.txt rename to Documentation/filesystems/spufs/spu_create.rst index 8ede5a35340f..83108c099696 100644 --- a/Documentation/filesystems/spufs/spu_create.txt +++ b/Documentation/filesystems/spufs/spu_create.rst @@ -1,18 +1,26 @@ -SPU_CREATE(2) Linux Programmer's Manual SPU_CREATE(2) +.. SPDX-License-Identifier: GPL-2.0 +========== +spu_create +========== - -NAME +Name +==== spu_create - create a new spu context -SYNOPSIS - #include - #include +Synopsis +======== - int spu_create(const char *pathname, int flags, mode_t mode); + :: -DESCRIPTION + #include + #include + + int spu_create(const char *pathname, int flags, mode_t mode); + +Description +=========== The spu_create system call is used on PowerPC machines that implement the Cell Broadband Engine Architecture in order to access Synergistic Processor Units (SPUs). It creates a new logical context for an SPU in @@ -43,13 +51,15 @@ DESCRIPTION possible mode values. -RETURN VALUE +Return Value +============ spu_create returns a new file descriptor. It may return -1 to indicate an error condition and set errno to one of the error codes listed below. -ERRORS +Errors +====== EACCES The current user does not have write access on the spufs mount point. @@ -87,33 +97,35 @@ ERRORS -NOTES +Notes +===== spu_create is meant to be used from libraries that implement a more abstract interface to SPUs, not to be used from regular applications. See http://www.bsc.es/projects/deepcomputing/linuxoncell/ for the rec- ommended libraries. -FILES +Files +===== pathname must point to a location beneath the mount point of spufs. By convention, it gets mounted in /spu. -CONFORMING TO +Conforming to +============= This call is Linux specific and only implemented by the ppc64 architec- ture. Programs using this system call are not portable. -BUGS +Bugs +==== The code does not yet fully implement all features lined out here. -AUTHOR +Author +====== Arnd Bergmann -SEE ALSO +See Also +======== capabilities(7), close(2), spu_run(2), spufs(7) - - - -Linux 2005-09-28 SPU_CREATE(2) -- 2.25.2