Re: [PATCH 2/2] selftests/liveupdate: Test ENOTTY for unknown ioctl numbers

From: Chris Down

Date: Wed Dec 02 2026 - 17:44:58 EST


Hi Pratyush,

Pratyush Yadav writes:
>Why 0x3f and 0xff? I assume you use this because
>LIVEUPDATE_CMD_SESSION_BASE is 0x40, so you want to test for a command
>before and after the base. This makes sense for a session FD, but for
>/dev/liveupdate, LIVEUPDATE_CMD_BASE is 0x00, so both 0x3f and 0xff
>would test for the same condition, right?

Oh thank you, you're right. I'll fix that up for v2.

>Also, please give these numbers a name. Otherwise we will forget why
>these were used in the first place.

Will do :-)

Thanks!

Chris