If so, what should it be named? "snc_ways" as a kernel variable was later replaced by "snc_nodes_per_l3_cache". Is that a good filename?
"snc_nodes_per_l3_cache" seems okay to me.
And I understand that the file content would show SNC mode and the presence or absence of this file would tell if kernel supports SNC?
Yes. The existence of the file indicates the kernel is SNC aware.
The value read from the file would give the number of nodes per L3 (obviously :-) )
SNC not supported by this platform or not enabled:
$ cat /sys/fs/resctrl/info/L3_mon/ snc_nodes_per_l3_cache 1
SNC2 enabled:
$ cat /sys/fs/resctrl/info/L3_mon/ snc_nodes_per_l3_cache 2
etc.
-Tony