Use DIAG318 to set Control Program Name & Version Codes
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · Collin Walling
A new diagnose instruction, 318, allows the kernel to set an 8-byte "Control Program Code" (CPC) that is composed of:
1-byte Control Program Name Code (CPNC)
7-byte Control Program Version Code (CPVC) composed of:
3-bytes for Linux Kernel version (determined at build-time)
3-bytes for Distribution Identifier (referred to asdistro_id; set byKconfigoption) 1-byte trailing NULL
Quoted 7 lines
Note about
distro_id:
[
The initial idea for the 3-bytedistro_idis for each distribution to set three characters that correspond to their distribution name (for a theoretical distributor "ACME," they could set "ACM" as thedistro_id). A registry file could be included in the s390 kernel documentation to avoid name collisions. ]
Another (likely better) idea is to use 1-byte for the distribution, followed by 2-bytes for major.minor release.
Signature · 2 lines
Respectfully, - Collin Walling