Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp708409ybz; Wed, 15 Apr 2020 17:11:40 -0700 (PDT) X-Google-Smtp-Source: APiQypKem77C47adB6S17JIJg8U42nqgErIMtQ77ClDDOM4rbM+JLnWSov2SY2pViufpyM9qo6h9 X-Received: by 2002:a50:cd89:: with SMTP id p9mr27328173edi.188.1586995899973; Wed, 15 Apr 2020 17:11:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586995899; cv=none; d=google.com; s=arc-20160816; b=dqmFGFlr3UMpuGv+e/zgj2pY5TbMgCOL5pNl4CeYCJyOLeJlL2M8eQk3EAkEBeU5X5 6X0mgF7qlw7suww5kCMWMlQvcx/pjaksBT4A6dJuBIkf+uQRXh1sxrdAD8AKaCV7ctB/ EfOhD1BmSuXfv99iNh1o69IDLLC4bH1IdM9UyW4/iUXyLZD9esXFLFxY9ZxKyDd/gyY8 UpBde2hyTpaMN/7SOK/GX+Ha07cEhVE43lxRIJk2IRC6o881pyVUCtYCVevMuJRh9DKb ZSe9ifUzppUC5YujR97dkRJSZCWR46+44kliWosEqu/XytCNpNqpwmgZQS5WxT79KNPe pd1g== 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=aaQOZcVUOW/nCVrN9pem/f1azQeCQ/qv8xSiubVTX/g=; b=GCJ4Wn147c9rtv9amQS88LfE6iMcGLsogjTkPfeYN1TWV/r3KROg2RKK8IeaVpl6M4 8WpJ8O9w9JNdQweXMBQzUM2jQtYldsdq9SUQnXZ6swmlD1deV2Z/fUevzQK0/RoygDRO 3w8NiEuU11xRDmZLa/FkZGe99ftN5SP+5mjYo4q+7n+tKlL+1JP7cxEmTqzcQ2jqMz4P bug/3lxZ2irq7uZPeD9XWHLIb4TIDFpJdlcrG/qWN4TX4KacDUkgGtgMwGbWifDxil/R 6OHLMmyPLUcPbG6C5DzP10dW+kZpOULusQ7uoGQJoHP3GG2ojN8/016mlE+wXOlqZ23J oS/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="R/QFBdH4"; 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 g7si10394237edm.32.2020.04.15.17.11.16; Wed, 15 Apr 2020 17:11:39 -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="R/QFBdH4"; 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 S2636677AbgDOOi0 (ORCPT + 99 others); Wed, 15 Apr 2020 10:38:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:45784 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394085AbgDOOdD (ORCPT ); Wed, 15 Apr 2020 10:33:03 -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 BF6EF221E8; Wed, 15 Apr 2020 14:32:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586961171; bh=3gPN9Xck86OU0Nu/wpUSjP1/DfTI3IuhV4IZrrb8T8w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R/QFBdH4SyWLelpOz14uSERyAL0yOwIewPDy/s4Jika537o27bQgeLeDdYANVeXF/ QSnlQIY8IPEjXMd7/xJkxdizhkbyfHhzuNzZ3Mog76MSBfnpIne5EGXUI2dR278tMk uGmvGteerQH+JTt55XCQcTx3jKVArcRORJnXoMWg= Received: from mchehab by mail.kernel.org with local (Exim 4.92.3) (envelope-from ) id 1jOj5u-006kPv-1Y; Wed, 15 Apr 2020 16:32:50 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet Subject: [PATCH 28/34] docs: filesystems: convert spufs/spu_create.txt to ReST Date: Wed, 15 Apr 2020 16:32:41 +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 b65f288366f0..6c5c312b8188 100644 --- a/Documentation/filesystems/index.rst +++ b/Documentation/filesystems/index.rst @@ -109,6 +109,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