From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754232AbdKFUCg (ORCPT ); Mon, 6 Nov 2017 15:02:36 -0500 Received: from mail-qt0-f193.google.com ([209.85.216.193]:53787 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752396AbdKFUCe (ORCPT ); Mon, 6 Nov 2017 15:02:34 -0500 X-Google-Smtp-Source: ABhQp+TdXKl7AwoUB+v2O5E5zGERo25MD6CQx+ZdS3zhkViGCL98nuvaTOIa91lZA/CweAAB0DnAmA== Date: Mon, 6 Nov 2017 12:02:31 -0800 From: Tejun Heo To: Roman Gushchin Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, cgroups@vger.kernel.org Subject: Re: [PATCH v2 2/2] cgroup: export list of cgroups v2 features using sysfs Message-ID: <20171106200231.GF3252168@devbig577.frc2.facebook.com> References: <20171106173854.GE3252168@devbig577.frc2.facebook.com> <20171106183029.21297-1-guro@fb.com> <20171106183029.21297-2-guro@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171106183029.21297-2-guro@fb.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 06, 2017 at 01:30:29PM -0500, Roman Gushchin wrote: > The active development of cgroups v2 sometimes leads to a creation > of interfaces, which are not turned on by default (to provide > backward compatibility). It's handy to know from userspace, which > cgroup v2 features are supported without calculating it based > on the kernel version. So, let's export the list of such features > using /sys/kernel/cgroup/features pseudo-file. > > The list is hardcoded and has to be extended when new functionality > is added. Each feature is printed on a new line. > > Example: > $ cat /sys/kernel/cgroup/features > nsdelegate > > Signed-off-by: Roman Gushchin > Cc: Tejun Heo > Cc: kernel-team@fb.com Applied 1-2 to cgroup/for-4.15. Thanks. -- tejun