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
  • kernel
  • params.c
Find file BlameHistoryPermalink
  • Denis Cheng's avatar
    module: fix the module name length in param_sysfs_builtin · 8686c998
    Denis Cheng authored Jan 21, 2008
    
    
    the original code use KOBJ_NAME_LEN for built-in module name length,
    that's defined to 20 in linux/kobject.h, but this is not enough appearntly,
    many module names are longer than this;
     #define KOBJ_NAME_LEN                   20
    
    another macro is MODULE_NAME_LEN defined in linux/module.h, I think this is
    enough for module names:
     #define MODULE_NAME_LEN (64 - sizeof(unsigned long))
    
    Signed-off-by: default avatarDenis Cheng <crquan@gmail.com>
    Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
    8686c998
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7