Re: [PATCH 2/2] selftests/liveupdate: Add helpers to preserve/retrieve FDs
From: tarunsahu
Date: Mon Jun 08 2026 - 15:00:52 EST
Pratyush Yadav <pratyush@xxxxxxxxxx> writes:
>>> > + return 0;
>>> > +}
>>> > +
>>> > +int luo_session_retrieve_fd(int session_fd, __u64 token)
>>> nit: Can add a comment that, once it is failed, retrieved status is saved,
>>> So it is permanent failure.
>>
>> I think appropriate place will be the official documentation which is
>> here include/uapi/linux/liveupdate.h
>>
>> I don't see it is mentioned in the documentation (yes, code does what
>> you have said), I will refrain from adding that comment here.
>
> Would be a good addition to the LUO docs I think. Patches welcome :-)
Added here:
https://lore.kernel.org/all/074445fc4964961f12171ea129f2a7690322a78a.1780944056.git.tarunsahu@xxxxxxxxxx/
>
> [...]
>
> --
> Regards,
> Pratyush Yadav