Revision 35cdcbfc5cfc30012b790d9b077bd949ad46f1dd authored by Peng Wang on 26 February 2021, 01:21:44 UTC, committed by Linus Torvalds on 26 February 2021, 17:41:04 UTC
Some max_length wants to hold as large room as possible to ensure enough
size to tackle with the biggest NR_CPUS.  An example below:

kernel/cgroup/cpuset.c:
static struct cftype legacy_files[] = {
        {
                .name = "cpus",
                .seq_show = cpuset_common_seq_show,
                .write = cpuset_write_resmask,
                .max_write_len = (100U + 6 * NR_CPUS),
                .private = FILE_CPULIST,
        },
	...
}

Link: https://lkml.kernel.org/r/5d4998aa8a8ac7efada2c7daffa9e73559f8b186.1609331255.git.rocking@linux.alibaba.com
Signed-off-by: Peng Wang <rocking@linux.alibaba.com>
Acked-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent b5e8736
Raw File
ecrdsa_params.asn1
EcrdsaParams ::= SEQUENCE {
	curve	OBJECT IDENTIFIER ({ ecrdsa_param_curve }),
	digest	OBJECT IDENTIFIER OPTIONAL ({ ecrdsa_param_digest })
}
back to top