Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • include
  • linux
  • filter.h
Find file BlameHistoryPermalink
  • Thomas Weißschuh's avatar
    bpf: constify member bpf_sysctl_kern:: Table · 2c1713a8
    Thomas Weißschuh authored May 18, 2024
    
    
    The sysctl core is preparing to only expose instances of struct ctl_table
    as "const". This will also affect the ctl_table argument of sysctl handlers,
    for which bpf_sysctl_kern::table is also used.
    
    As the function prototype of all sysctl handlers throughout the tree
    needs to stay consistent that change will be done in one commit.
    
    To reduce the size of that final commit, switch this utility type which
    is not bound by "typedef proc_handler" to "const struct ctl_table".
    
    No functional change.
    
    Signed-off-by: default avatarThomas Weißschuh <linux@weissschuh.net>
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    Reviewed-by: default avatarJoel Granados <j.granados@samsung.com>
    Link: https://lore.kernel.org/bpf/20240518-sysctl-const-handler-bpf-v1-1-f0d7186743c1@weissschuh.net
    2c1713a8
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7