const NV_RM_CONTROL_REQUEST: c_ulong = 0xC020_462A;Expand description
The RM control ioctl the gate recognizes: _IOWR('F'=0x46, NR=0x2A, sizeof(NVOS54_PARAMETERS)=32), encoding DIR=READ|WRITE, TYPE=0x46, NR=0x2A, SIZE=0x20.
Matching is by DIR|TYPE|NR with the encoded _IOC_SIZE deliberately masked off (via
ioc_no_size): a driver whose NVOS54_PARAMETERS has a different sizeof encodes a different
size and would slip past an exact-request compare, yet it is still the very same command.
Matching the NR alone would be too loose and pinning the exact encoded size too tight, so the
gate keys on DIR|TYPE|NR and validates the true per-command parameter layout separately via
ctrl.params_size. This is the deliberate middle ground.