[PATCH v9 09/15] syscalls: Add an option for offsetting the common table

Arnd Bergmann arnd at arndb.de
Thu Nov 12 07:13:30 PST 2026


On Thu, Nov 12, 2026, at 16:10, André Almeida wrote:
> Em 12/11/2026 12:08, Arnd Bergmann escreveu:
>> On Thu, Nov 12, 2026, at 15:37, André Almeida wrote:
>>> Em 12/11/2026 11:07, Arnd Bergmann escreveu:
>>>> On Thu, Nov 5, 2026, at 21:05, André Almeida wrote:
>>> So one option does a string concat, the other option really does a sum
>>> operation. If I had used --offset 110, the result would be
>>>
>>> #define __NR_file_setattr (110 + 469)
>>> #define __NR_listns (110 + 470)
>>> #define __NR_rseq_slice_yield (110 + 471)
>> 
>> I think for consistency, that would have been fine here, possibly
>> using another macro.
>> 
>
> Something like:
>
> #define __NR_common_offset 110
>
> #define __NR_file_setattr (__NR_common_offset + 469)
>
> Sounds good?

Yes, works for me.

      Arnd



More information about the linux-arm-kernel mailing list