tree-wide: link to docs.kernel.org for kernel documentation
https://www.kernel.org/ links to https://docs.kernel.org/ for the documentation. These URLs are shorter and nicer looking.
This commit is contained in:
@@ -321,7 +321,7 @@ int bpf_map_new(
|
||||
/* The map name is primarily informational for debugging purposes, and typically too short
|
||||
* to carry the full unit name, hence we employ a trivial lossy escaping to make it fit
|
||||
* (truncation + only alphanumerical, "." and "_" are allowed as per
|
||||
* https://www.kernel.org/doc/html/next/bpf/maps.html#usage-notes) */
|
||||
* https://docs.kernel.org/bpf/maps.html#usage-notes) */
|
||||
for (size_t i = 0; i < sizeof(attr.map_name) - 1 && *n; i++, n++)
|
||||
attr.map_name[i] = strchr(ALPHANUMERICAL ".", *n) ? *n : '_';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user