Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp211933lqo; Thu, 16 May 2024 04:17:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXhaNH/jtSUxWpJ/57VUglFi96BZMRiYeTM077aBc2sZJyyoj4HW4p9bd9EyZH6xLdz3W61Qqut5CVd/aBbFUOxvqPxlk9qIyvozUFNiQ== X-Google-Smtp-Source: AGHT+IHVv4fJPPNyuAAi1i2YHXN5PJdDN6ShaW1ZpKk1sWI7PQFttWphEgzAr5VddRAp/IwGWK8f X-Received: by 2002:a05:622a:1305:b0:43a:88e1:43a2 with SMTP id d75a77b69052e-43dfda8cec8mr173363741cf.3.1715858264904; Thu, 16 May 2024 04:17:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715858264; cv=pass; d=google.com; s=arc-20160816; b=JV0Mnjzwzj6CY90ZE9LMsgIJozVL9YcndV2bULbmZxiE6Ugqa//6vVhgaSghzz30Em U9Ck30XAdQQ2+bmjFVNuwCW0QDSYUH0rq9Z0nKgHDLg2YJWpKNFwMfwPtxnKs006fGjs pexKpgmRJ+qlTZ+6v2LegEIALPRU0yrDYgcJldT4496p7p+jwGdflyxFOhuVDGcwccki R9VHp5DlgH+3PbUw36It5BmwiGR/dAS8aRLwx0EaOQNCHIr0S5fPZQF/imR9g723T+hg quPYhzttdmZtPUMOozzeSS59pSaznglMuSGkt/o7iO2BPDNqbcgIfwZbSl/VYugKQoL3 1wJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TFMAaWfFGF0WtQsy5D30nrsQQCK2EA0IGuo+kxbnwfI=; fh=19zCFZ5e8bH5YfXpEjp/Sy0oVjopG3PtKI0i67On7+k=; b=Fa/oSIZYSMAZ3T0czHLqygL60YqpU6gBqKzjL1f3+IP77KU38zeMRByFt2MnmOA1vz Eux079Vgk9tg4AzO7BM2Kisv8Y2n3xdpmsvPUS+dTdn1nz7q4v9PcsYUPMY/WnwFzsjf zLBWhc5mhhxUPzTvQim3n7dKF+u+y6c0jtr3ajsgdApQnQU4siKZoMcKddrQoD7kI2Qu ZKBVonDkCMAf/Lb/qP1de8hXNvr1jkN860cYTfae14PDbfk0X/RIcO9N5UjNtXAHbuPV mdk7ZkUyfQMlokCttGt9FdDSflnQitKf5Fg1XVOdMid2BdUBkuTQJcHbgvtAplWUhgVl +OGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Vrs5ZgjU; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-180933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180933-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43df566f660si2811831cf.324.2024.05.16.04.17.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 04:17:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Vrs5ZgjU; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-180933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180933-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A035C1C21B93 for ; Thu, 16 May 2024 11:17:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3AE51459ED; Thu, 16 May 2024 11:17:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Vrs5ZgjU" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED24214535E; Thu, 16 May 2024 11:17:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715858258; cv=none; b=eGtRHky/ITgF0zznyNEOCWlHSSX+NK6lEYcJli4KYjCALJErR8iUkF7rS1lt0r3IpDhgbP5PtRkts1gI+YvBdkHsDsuTpj37Wg7T75s03eYr/qN0Gl+H0IrfbvhCqqLPQ3vJih29H12BK7ypfbX7+u9Hn2DLuNql1QPKC8h6KLM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715858258; c=relaxed/simple; bh=c5e0mFp+ruu1GBzNvy2XnURTk5BTJbgaFDgtVzQ8PlE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MmhI+erpFuEB77i834F6jegwNo3G7PrEI31DN9CXDOHcL/skuv1fyvWDieM+gJzAw++ti3ukyCJmWK7l9PNTDDDyPaNC3pCuKx4Wd+trhQI0sIMNDaaN+57VnWRDeAtYFsmyjU0nlW1HAaiDHzJVFZ9m0ZCJgH7e5pvCeBMQErM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Vrs5ZgjU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4BEB4C113CC; Thu, 16 May 2024 11:17:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715858257; bh=c5e0mFp+ruu1GBzNvy2XnURTk5BTJbgaFDgtVzQ8PlE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Vrs5ZgjUEmZa2vpDT/Fzn2L7uuqxpZAunmzdTAlgy0bstG24a2UzvgBAa6gi+74qm KnJWA/QMmhbfMN8b3W83K0rjvTBhnHZHEIiLKI7n7Pp19+P3/A//pbajwB1z8Qt2Ke 2hQxitoWhPbYLQWn9OZjS4wy3tAC6jn/r47s75NU= Date: Thu, 16 May 2024 13:17:34 +0200 From: Greg Kroah-Hartman To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Andrew Morton , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, Sebastian Reichel , linux-pm@vger.kernel.org Subject: Re: [PATCH RFC] kobject_uevent: notify uevent sysfs file on changes Message-ID: <2024051640-earthen-granite-0847@gregkh> References: <20240516-uevent-sysfs-notify-v1-1-2ebb39930c09@weissschuh.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240516-uevent-sysfs-notify-v1-1-2ebb39930c09@weissschuh.net> On Thu, May 16, 2024 at 12:27:58PM +0200, Thomas Wei?schuh wrote: > The sysfs file "uevent" that exists for each device > contains the same information that is attached to uevents emitted via > netlink (or the usermode helper). > This is useful for userspace which interacts with sysfs directly, > without using (lib)udev. > > However it is not possible to actually get notified when the data in > the "uevent" file changes. What is wrong with listening to the uevent that is happening when the file changes? > Enable these notifications, so that the "uevent" file can be used > together with inotify and friends. uevent files are meant to be listened to by the uevent itself, why not do that? thanks, greg k-h