Re: [PATCH bpf-next v2 1/6] kallsyms: Add KALLSYMS_QUERY ioctl to /proc/kallsyms

From: Randy Dunlap

Date: Sun Oct 25 2026 - 19:29:57 EST




On 10/22/26 5:16 PM, Samuel Wu wrote:

...
> ---
> include/uapi/linux/fs.h | 41 +++++++++++++
> kernel/kallsyms.c | 132 ++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 173 insertions(+)
>
> diff --git a/include/uapi/linux/fs.h b/include/uapi/linux/fs.h
> index 34c6f219462a..b43f227dad0e 100644
> --- a/include/uapi/linux/fs.h
> +++ b/include/uapi/linux/fs.h
> @@ -674,6 +674,47 @@ struct procmap_query {
> __u64 build_id_addr; /* in */
> };
>
> +/* /proc/kallsyms ioctl */
> +#define KALLSYMS_QUERY _IOWR(PROCFS_IOCTL_MAGIC, 18, struct kallsyms_query)
...


Documentation/userspace/ioctl/ioctl-number.rst doesn't seem to know
about PROCFS_IOCTL_MAGIC and what range of @nr values that it uses.

Please update it.

--
~Randy