Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • I ipipe-arm64
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Analytics
    • Analytics
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomaixenomai
  • ipipe-arm64
  • Repository
  • ipipe-arm64
  • fs
  • sysfs
  • file.c
Find file Blame History Permalink
  • Tejun Heo's avatar
    sysfs, kernfs: introduce kernfs_create_file[_ns]() · 496f7394
    Tejun Heo authored Nov 28, 2013
    
    
    Introduce kernfs interface to create a file which takes and returns
    sysfs_dirents.
    
    The actual file creation part is separated out from
    sysfs_add_file_mode_ns() into kernfs_create_file_ns().  The former now
    only decides the kernfs_ops to use and the file's size and invokes the
    latter.
    
    This patch doesn't introduce behavior changes.
    
    v2: Dummy implementation for !CONFIG_SYSFS updated to return -ENOSYS.
    
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    496f7394

Imprint & Privacy Policy