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
  • linux
  • kernel
  • utsname_sysctl.c
Find file BlameHistoryPermalink
  • Petr Vorel's avatar
    kernel/utsname_sysctl.c: print kernel arch · bfca3dd3
    Petr Vorel authored Sep 01, 2022
    Print the machine hardware name (UTS_MACHINE) in /proc/sys/kernel/arch.
    
    This helps people who debug kernel with initramfs with minimal environment
    (i.e.  without coreutils or even busybox) or allow to open sysfs file
    instead of run 'uname -m' in high level languages.
    
    Link: https://lkml.kernel.org/r/20220901194403.3819-1-pvorel@suse.cz
    
    
    Signed-off-by: default avatarPetr Vorel <pvorel@suse.cz>
    Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    Cc: David Sterba <dsterba@suse.com>
    Cc: "Eric W . Biederman" <ebiederm@xmission.com>
    Cc: Rafael J. Wysocki <rafael@kernel.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    bfca3dd3
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7