From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84BE5C433DB for ; Wed, 27 Jan 2021 03:52:17 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 04671206B5 for ; Wed, 27 Jan 2021 03:52:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 04671206B5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94) (envelope-from ) id 1l4bs7-0002hT-AK; Tue, 26 Jan 2021 22:51:59 -0500 Received: from mail-qk1-x730.google.com ([2607:f8b0:4864:20::730]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1l4bs4-0002g4-V5 for kernelnewbies@kernelnewbies.org; Tue, 26 Jan 2021 22:51:57 -0500 Received: by mail-qk1-x730.google.com with SMTP id x81so617098qkb.0 for ; Tue, 26 Jan 2021 19:51:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vt-edu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:in-reply-to:references:mime-version :content-transfer-encoding:date:message-id; bh=ScCj0yWFC9/560QRhOhnXJBPAa7q6YArSIKLoXImW0o=; b=yYzT9PBtIovhrugO8gJXvIVOZ/t9aktizJFj1oL9O+oXdznv5NfrKUiHhFAhEG9zkU j7R2Gl96vc2IIbz5deORvmQMXlhdDFHQ/TePgxWeLcF7+T6W1KlCd5DaM8cpoIZ2LOzT y3nve9XEMQMCZhvcLC6ULHscGmyB5f9vMW7zlbAYxU/snBPl/RHj+hdlTBk2wiC94nZf 5+BRsOxKnqsYuGY4KiRtSYU1daxhynCAWdzL49i5POgONkJQS2C0nl40rWEo/arI8zI9 4/EcIs6IKY5M6Eo6+z8eeGbOh4KvQ2MhnP9iwj7R0aamDLnRJgGB1LsQ39g35MBW0CWW zlHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:content-transfer-encoding:date:message-id; bh=ScCj0yWFC9/560QRhOhnXJBPAa7q6YArSIKLoXImW0o=; b=uZjin3vq6jCwAlwsDL/4W3sZfcA7HHRWR9W3lCDI2R6TZ5ITDQF4C5UsC/OdC4qCXI CPirp+ShjW1UDhP/lw9gsVbecWJgx7N70s2J9eTs58MFurWuLxkgMMQe3oOylJobdDL3 OmunMqd6b1FQDn+jkCGj5nJtSTWSGlLjoiE2a5QOCPkv/HGmjDvgu9Xgf5BllrLOb0Nf aBjRx5RFPQfbLbfFdhRMOFKk8g8Xf1QFkydJjjJTbH8smxZWBflfibssUgfDNTIFosma wQLuFqiGxRtPDJdnsmXn8Fu57+0TsPEWWZ4bIKoswjQujENHTiFRLp5fvCcrmqrukq87 SmFw== X-Gm-Message-State: AOAM5337CJpb/fz35lA96gLfEldJ5SjlEOaFBNpoZp6mFFGghbfypR8e d3IoDb+yzi7Go8tuI/54h1IePg== X-Google-Smtp-Source: ABdhPJwxMMTAhnpvfpWP3nU1/DlRsv90ZHgDzvU65bGakSKz5MQSoh9S0IeKCcwBbg1rlmudEZqmoA== X-Received: by 2002:a37:5c3:: with SMTP id 186mr8458271qkf.32.1611719514300; Tue, 26 Jan 2021 19:51:54 -0800 (PST) Received: from turing-police ([2601:5c0:c380:d61::359]) by smtp.gmail.com with ESMTPSA id g189sm471148qkf.8.2021.01.26.19.51.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jan 2021 19:51:53 -0800 (PST) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Mohana Datta Yelugoti Subject: Re: Doubt on show() function of sysfs attribute In-Reply-To: <98fe87f5-19ac-dfa7-41eb-2e00d7415021@gmail.com> References: <98fe87f5-19ac-dfa7-41eb-2e00d7415021@gmail.com> Mime-Version: 1.0 Date: Tue, 26 Jan 2021 22:51:52 -0500 Message-ID: <11595.1611719512@turing-police> Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============8116844252358692879==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============8116844252358692879== Content-Type: multipart/signed; boundary="==_Exmh_1611719512_9548P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_1611719512_9548P Content-Type: text/plain; charset=us-ascii On Tue, 26 Jan 2021 23:07:24 +0530, Mohana Datta Yelugoti said: > Hello everyone, > > I am going through Documentation/filesystems/sysfs.rst. > > It says that sysfs allocates a buffer of size PAGE_SIZE and > passes it to the show/store functions of the attribute. On > read(), the show() method should fill the entire buffer[0]. 'git blame' indicates that except for a commit that converted it to RST format, that file is essentially the same as it was when Linus originally imported the kernel tree into git. So it's describing the situation as it was in 2005, and probably way out of date. --==_Exmh_1611719512_9548P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBYBDjVwdmEQWDXROgAQIJMRAAnTSEuX1hwYhGYU9l1YujI1+wLmwtDavh 5P6HDod6TrYl8vn5d70ATvCkewylSZEL1Yj3LvEnPrP5ZFYkNJ8MDRMgAOEBJpMY IWAk0jPpgAP2bcLvUaiz32N9zRr7i1jq3tIUXV5cXNKewHxg6Hg5D5iPERYTkeq3 cVKUaJ6XAikWZgiHdvMi0pnDnJGqCWkDmbV3oIVaUYu/iA2egaW70LjDjUXDbM3S JJ6CNfCwMPWHCqovJqsjHNbWF19V01AdLo5H4vinzAzGTDrbdZ8br1RrGAcXTiAZ USkM/HaQ3ZHBemg6Bs9KzaYGDGpoyW76QEQtsPXKw+6Hh4HrYv3fiILldWL5zshL 9tN4B5A4UaDTDbqsr9mFGg3d8rJEFzCuQScb9n2RJkZu3WSN185PqhDei8IFbIDX CuaneMK3Q0nCFVq+vhhIrcZaMh0cAZw+6jbra6ovPy1YRzqMi0i4GsJ3973IIyzn Us/3OgWcUvdmw9QlLpwZWZqjzCfTzhDxtoItUye4xggPdURcQM2CXeAsPPEnvsUX yvGc692hhVirPtplUJQgsofFq7UMLx7tIE5CEGuzvcYhtLBp5hUSdgk25yPy8IsX g+0UCahGaacyQrOL4MmzQ/smH5j+RM9tLJGcPa2Z7hXmlbESvAZ74/7NONMIc2jA IUYrx39KisA= =6ARG -----END PGP SIGNATURE----- --==_Exmh_1611719512_9548P-- --===============8116844252358692879== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============8116844252358692879==--