Linux userland API discussions
 help / color / mirror / Atom feed
From: Chris Down <chris@chrisdown.name>
To: Pratyush Yadav <pratyush@kernel.org>
Cc: Pasha Tatashin <pasha.tatashin@soleen.com>,
	Mike Rapoport <rppt@kernel.org>, Shuah Khan <shuah@kernel.org>,
	Shuah Khan <skhan@linuxfoundation.org>,
	linux-kselftest@vger.kernel.org, kexec@lists.infradead.org,
	linux-kernel@vger.kernel.org, linux-api@vger.kernel.org
Subject: Re: [PATCH 2/2] selftests/liveupdate: Test ENOTTY for unknown ioctl numbers
Date: Wed, 02 Dec 2026 14:44:43 -0800	[thread overview]
Message-ID: <axCfW9x3EjBEqFqw@chrisdown.name> (raw)
In-Reply-To: <2vxzqzg0ufjh.fsf@kernel.org>

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

      reply	other threads:[~2026-12-02 22:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02  6:53 [PATCH 0/2] liveupdate: Return -ENOTTY for unknown ioctl numbers Chris Down
2026-12-02  6:53 ` [PATCH 1/2] " Chris Down
2026-12-02 10:16   ` Pratyush Yadav
2026-12-02  6:53 ` [PATCH 2/2] selftests/liveupdate: Test ENOTTY " Chris Down
2026-12-02 10:45   ` Pratyush Yadav
2026-12-02 22:44     ` Chris Down [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=axCfW9x3EjBEqFqw@chrisdown.name \
    --to=chris@chrisdown.name \
    --cc=kexec@lists.infradead.org \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=pasha.tatashin@soleen.com \
    --cc=pratyush@kernel.org \
    --cc=rppt@kernel.org \
    --cc=shuah@kernel.org \
    --cc=skhan@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox