aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs
AgeCommit message (Expand)AuthorFilesLines
2024-04-11fs: sysfs: Fix reference leak in sysfs_break_active_protection()Alan Stern1-0/+2
2024-03-07sysfs:Addresses documentation in sysfs_merge_group and sysfs_unmerge_group.Rohan Kollambalath1-5/+5
2024-02-23sysfs: Fix crash on empty group attributes arrayDan Williams1-2/+2
2024-02-19sysfs: Introduce a mechanism to hide static attribute_groupsDan Williams1-9/+36
2023-12-07fs/sysfs/dir.c : Fix typo in commentMukesh Ojha1-1/+1
2023-10-05kernfs: sysfs: support custom llseek method for sysfs entriesValentine Sinitsyn1-0/+13
2023-06-15sysfs: Skip empty folders creationMiquel Raynal1-3/+5
2023-06-15sysfs: Improve readability by following the kernel coding styleMiquel Raynal1-1/+3
2022-04-05kobject: kobj_type: remove default_attrsGreg Kroah-Hartman1-13/+0
2022-02-23kernfs: move struct kernfs_root out of the public view.Greg Kroah-Hartman1-1/+1
2021-10-05fs/sysfs/dir.c: replace S_IRWXU|S_IRUGO|S_IXUGO with 0755 sysfs_create_dir_ns()Luis Chamberlain1-2/+1
2021-09-14sysfs: simplify sysfs_kf_seq_showChristoph Hellwig1-9/+6
2021-09-14sysfs: refactor sysfs_add_file_mode_nsChristoph Hellwig1-13/+14
2021-09-14sysfs: split out binary attribute handling from sysfs_add_file_mode_nsChristoph Hellwig3-65/+78
2021-08-06Merge tag 'sysfs_defferred_iomem_get_mapping-5.15' of git://git.kernel.org/pu...Greg Kroah-Hartman1-2/+2
2021-08-05sysfs: Rename struct bin_attribute member to f_mappingKrzysztof Wilczyński1-2/+2
2021-08-05sysfs: Invoke iomem_get_mapping() from the sysfs open callbackKrzysztof Wilczyński1-1/+1
2021-07-21sysfs: Use local reference in compat_only_sysfs_link_entry_to_kobj()Geert Uytterhoeven1-1/+1
2021-01-12sysfs: Support zapping of binary attr mmapsDaniel Vetter1-0/+11
2020-10-02sysfs: Add sysfs_emit and sysfs_emit_at to format sysfs outputJoe Perches1-0/+55
2020-06-05Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdmaLinus Torvalds1-0/+1
2020-05-17sysfs: export sysfs_remove_file_self()Jack Wang1-0/+1
2020-04-20docs: filesystems: fix renamed referencesMauro Carvalho Chehab4-4/+4
2020-04-05sysfs: remove redundant __compat_only_sysfs_link_entry_to_kobj fnLinus Torvalds1-16/+0
2020-04-05Merge tag 'powerpc-5.7-1' of git://git.kernel.org/pub/scm/linux/kernel/git/po...Linus Torvalds1-3/+25
2020-02-26sysfs: add sysfs_change_owner()Christian Brauner1-0/+60
2020-02-26sysfs: add sysfs_group{s}_change_owner()Christian Brauner1-0/+115
2020-02-26sysfs: add sysfs_link_change_owner()Christian Brauner1-0/+41
2020-02-26sysfs: add sysfs_file_change_owner()Christian Brauner1-0/+47
2020-02-19sysfs: Wrap __compat_only_sysfs_link_entry_to_kobj function to change the sym...Sourabh Jain1-3/+25
2020-02-04treewide: remove redundant IS_ERR() before error code checkMasahiro Yamada1-1/+1
2019-07-19Merge branch 'work.mount0' of git://git.kernel.org/pub/scm/linux/kernel/git/v...Linus Torvalds1-2/+1
2019-06-03sysfs: Add sysfs_update_groups functionJiri Olsa1-15/+39
2019-05-25no need to protect against put_user_ns(NULL)Al Viro1-2/+1
2019-05-21treewide: Add SPDX license identifier - Makefile/KconfigThomas Gleixner2-0/+2
2019-03-16Merge branch 'work.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-3/+5
2019-03-16fix sysfs_init_fs_context() in !CONFIG_NET_NS caseAl Viro1-3/+5
2019-03-12Merge branch 'work.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-19/+54
2019-02-28kernfs, sysfs, cgroup, intel_rdt: Support fs_contextDavid Howells1-19/+54
2019-02-08sysfs: remove unused include of kernfs-internal.hOndrej Mosnacek1-1/+0
2019-01-18sysfs: fix blank line coding style warningStephen Martin1-0/+1
2019-01-07sysfs: convert BUG_ON to WARN_ONGreg Kroah-Hartman4-5/+10
2018-12-03sysfs: constify sysfs create/remove files harderJani Nikula1-2/+2
2018-08-18Merge tag 'driver-core-4.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-8/+22
2018-08-15Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-0/+44
2018-08-02scsi: sysfs: Introduce sysfs_{un,}break_active_protection()Bart Van Assche1-0/+44
2018-07-29sysfs: Fix regression when adding a file to an existing groupTyler Hicks1-1/+1
2018-07-20sysfs, kobject: allow creating kobject belonging to arbitrary usersDmitry Torokhov4-23/+44
2018-07-20kernfs: allow creating kernfs objects with arbitrary uid/gidDmitry Torokhov2-3/+6
2018-07-07sysfs: Fix internal_create_group() for named group updatesRajat Jain1-7/+22
2018-05-21unfuck sysfs_mount()Al Viro1-3/+3
2018-03-19sysfs: symlink: export sysfs_create_link_nowarn()Grygorii Strashko1-0/+1
2018-02-01Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/pml...Linus Torvalds1-3/+2
2018-01-23sysfs: remove DEBUG definesGreg Kroah-Hartman2-3/+0
2018-01-23sysfs: use SPDX identifiersGreg Kroah-Hartman6-13/+6
2018-01-22sysfs: turn WARN() into pr_warn()Greg Kroah-Hartman1-2/+3
2018-01-05sysfs: do not use print_symbol()Sergey Senozhatsky1-3/+2
2017-12-18sysfs: Use PTR_ERR_OR_ZERO()Vasyl Gomonovych1-1/+1
2017-11-27Rename superblock flags (MS_xyz -> SB_xyz)Linus Torvalds1-1/+1
2017-04-08sysfs: be careful of error returns from ops->show()NeilBrown1-2/+4
2016-10-14Merge branch 'for-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cg...Linus Torvalds1-3/+3
2016-09-27sysfs print name of undiscoverable attribute groupJohannes Thumshirn1-2/+2
2016-08-31sysfs: correctly handle read offset on PREALLOC attrsKonstantin Khlebnikov1-1/+7
2016-08-10kernfs: make kernfs_path*() behave in the style of strlcpy()Tejun Heo1-3/+3
2016-06-23kernfs: The cgroup filesystem also benefits from SB_I_NOEXECEric W. Biederman1-2/+1
2016-06-23mnt: Refactor fs_fully_visible into mount_too_revealingEric W. Biederman1-2/+2
2015-11-13Merge tag 'chrome-platform-4.4' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-2/+15
2015-11-05Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/...Linus Torvalds1-0/+44
2015-10-19sysfs: added __compat_only_sysfs_link_entry_to_kobj()Jarkko Sakkinen1-0/+44
2015-10-07sysfs: Support is_visible() on binary attributesEmilio López1-2/+15
2015-10-04sysfs: correctly handle short reads on PREALLOC attrs.NeilBrown1-1/+3
2015-07-10vfs: Commit to never having exectuables on proc and sysfs.Eric W. Biederman1-0/+4
2015-07-03Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds2-4/+35
2015-07-01sysfs: Add support for permanently empty directories to serve as mount points.Eric W. Biederman1-0/+34
2015-06-01fs: sysfs: don't pass count == 0 to bin file readersVladimir Zapolskiy1-1/+1
2015-05-24sysfs: disambiguate between "error code" and "failure" in commentsAntonio Ospite1-3/+3
2015-05-13mnt: Refactor the logic for mounting sysfs and proc in a user namespaceEric W. Biederman1-4/+1
2015-03-25sysfs: Only accept read/write permissions for file attributesVivien Didelot1-0/+6
2015-03-25sysfs: Use only return value from is_visible for the file modeGuenter Roeck1-3/+2
2015-02-15Merge tag 'driver-core-3.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-1/+1
2015-02-13kernfs: remove KERNFS_STATIC_NAMETejun Heo1-1/+1
2015-02-03sysfs: fix warning when creating a sysfs group without attributesJavi Merino1-1/+1
2014-11-07sysfs/kernfs: make read requests on pre-alloc files use the buffer.NeilBrown1-4/+28
2014-11-07sysfs/kernfs: allow attributes to request write buffer be pre-allocated.NeilBrown1-7/+24
2014-11-07fs: sysfs: return EGBIG on write if offset is larger than file sizeVladimir Zapolskiy1-1/+1
2014-05-27kernfs: move the last knowledge of sysfs out from kernfsJianyu Zhan1-1/+3
2014-05-27sysfs: fix attribute_group bin file path on removalRobert ABEL1-5/+5
2014-05-20sysfs: make sure read buffer is zeroedTejun Heo1-1/+2
2014-05-13kernfs, sysfs, cgroup: restrict extra perm check on open to sysfsTejun Heo1-1/+2
2014-04-16sysfs, driver-core: remove unused {sysfs|device}_schedule_callback_owner()Tejun Heo1-92/+0
2014-03-25Revert "sysfs, driver-core: remove unused {sysfs|device}_schedule_callback_ow...Greg Kroah-Hartman1-0/+92
2014-03-02Merge 3.14-rc5 into driver-core-nextGreg Kroah-Hartman1-2/+3
2014-02-25sysfs: fix namespace refcnt leakLi Zefan1-2/+3
2014-02-15sysfs: create bin_attributes under the requested groupCody P Schafer1-2/+5
2014-02-07kernfs: add CONFIG_KERNFSTejun Heo1-0/+1
2014-02-07kernfs: implement kernfs_get_parent(), kernfs_name/path() and friendsTejun Heo1-31/+13
2014-02-07kernfs: allow nodes to be created in the deactivated stateTejun Heo1-1/+1
2014-02-07sysfs, driver-core: remove unused {sysfs|device}_schedule_callback_owner()Tejun Heo1-92/+0
2014-02-07kernfs, sysfs, driver-core: implement kernfs_remove_self() and its wrappersTejun Heo1-0/+23
2014-01-13Revert "kernfs, sysfs, driver-core: implement kernfs_remove_self() and its wr...Greg Kroah-Hartman1-23/+0
2014-01-13Revert "sysfs, driver-core: remove unused {sysfs|device}_schedule_callback_ow...Greg Kroah-Hartman1-0/+92
2014-01-10sysfs, driver-core: remove unused {sysfs|device}_schedule_callback_owner()Tejun Heo1-92/+0
2014-01-10kernfs, sysfs, driver-core: implement kernfs_remove_self() and its wrappersTejun Heo1-0/+23
2013-12-17kernfs: add kernfs_dir_opsTejun Heo1-1/+1
2013-12-17kernfs: mark static names with KERNFS_STATIC_NAMETejun Heo1-2/+2
2013-12-17kernfs: add @mode to kernfs_create_dir[_ns]()Tejun Heo2-2/+4
2013-12-11kernfs: s/sysfs/kernfs/ in constantsTejun Heo3-3/+3
2013-12-11kernfs: s/sysfs/kernfs/ in various data structuresTejun Heo1-5/+5
2013-12-11kernfs: drop s_ prefix from kernfs_node membersTejun Heo3-17/+17
2013-12-11kernfs: s/sysfs_dirent/kernfs_node/ and rename its friends accordinglyTejun Heo6-185/+185
2013-12-10sysfs: fix use-after-free in sysfs_kill_sb()Tejun Heo1-1/+3
2013-12-10sysfs: bail early from kernfs_file_mmap() to avoid spurious lockdep warningTejun Heo1-4/+8
2013-11-29sysfs, kernfs: remove cross inclusions of internal headersTejun Heo1-1/+0
2013-11-29sysfs, kernfs: implement kernfs_ns_enabled()Tejun Heo1-1/+1
2013-11-29sysfs, kernfs: move mount core code to fs/kernfs/mount.cTejun Heo2-170/+0
2013-11-29sysfs, kernfs: prepare mount path for kernfsTejun Heo1-32/+72
2013-11-29sysfs, kernfs: make super_blocks bind to different kernfs_rootsTejun Heo2-4/+12
2013-11-29sysfs, kernfs: implement kernfs_create/destroy_root()Tejun Heo1-11/+18
2013-11-29sysfs, kernfs: introduce sysfs_root_sdTejun Heo4-9/+11
2013-11-29sysfs, kernfs: no need to kern_mount() sysfs from sysfs_init()Tejun Heo1-16/+7
2013-11-29sysfs, kernfs: make sysfs_super_info->ns constTejun Heo2-8/+8
2013-11-29sysfs, kernfs: drop unused params from sysfs_fill_super()Tejun Heo1-2/+2
2013-11-29sysfs, kernfs: move symlink core code to fs/kernfs/symlink.cTejun Heo2-138/+0
2013-11-29sysfs, kernfs: move file core code to fs/kernfs/file.cTejun Heo2-805/+1
2013-11-29sysfs, kernfs: move dir core code to fs/kernfs/dir.cTejun Heo2-999/+0
2013-11-29sysfs, kernfs: move inode code to fs/kernfs/inode.cTejun Heo3-356/+1
2013-11-29sysfs, kernfs: move internal decls to fs/kernfs/kernfs-internal.hTejun Heo1-96/+6
2013-11-29sysfs, kernfs: introduce kernfs[_find_and]_get() and kernfs_put()Tejun Heo7-127/+118
2013-11-29sysfs, kernfs: revamp sysfs_dirent active_ref lockdep annotationTejun Heo3-44/+27
2013-11-29sysfs, kernfs: reorganize SYSFS_* constantsTejun Heo1-6/+6
2013-11-29sysfs, kernfs: introduce kernfs_notify()Tejun Heo1-11/+22
2013-11-29sysfs, kernfs: add kernfs_ops->seq_{start|next|stop}()Tejun Heo1-11/+28
2013-11-29sysfs, kernfs: remove sysfs_add_one()Tejun Heo4-41/+6
2013-11-29sysfs, kernfs: introduce kernfs_create_file[_ns]()Tejun Heo1-11/+42
2013-11-29sysfs, kernfs: remove SYSFS_KOBJ_BIN_ATTRTejun Heo4-26/+14
2013-11-29sysfs, kernfs: add sysfs_dirent->s_attr.sizeTejun Heo3-7/+8
2013-11-29sysfs, kernfs: introduce kernfs_opsTejun Heo2-34/+115
2013-11-29sysfs, kernfs: move sysfs_open_file to include/linux/kernfs.hTejun Heo1-11/+0
2013-11-29sysfs, kernfs: prepare open, release, poll paths for kernfsTejun Heo3-21/+10
2013-11-29sysfs, kernfs: prepare mmap path for kernfsTejun Heo1-30/+39
2013-11-29sysfs, kernfs: prepare write path for kernfsTejun Heo1-53/+50
2013-11-29sysfs, kernfs: prepare read path for kernfsTejun Heo1-65/+126
2013-11-29sysfs, kernfs: introduce kernfs_create_dir[_ns]()Tejun Heo3-30/+36
2013-11-29sysfs, kernfs: replace sysfs_dirent->s_dir.kobj and ->s_attr.[bin_]attr with ...Tejun Heo5-24/+21
2013-11-27Merge branch 'driver-core-linus' into driver-core-nextGreg Kroah-Hartman1-2/+20
2013-11-27sysfs, kernfs: introduce kernfs_setattr()Tejun Heo3-11/+24
2013-11-27sysfs, kernfs: introduce kernfs_rename[_ns]()Tejun Heo3-12/+16
2013-11-27sysfs, kernfs: introduce kernfs_create_link()Tejun Heo1-30/+46
2013-11-27sysfs, kernfs: introduce kernfs_remove[_by_name[_ns]]()Tejun Heo5-26/+22
2013-11-27sysfs: make __sysfs_add_one() fail if the parent isn't a directoryTejun Heo1-0/+3
2013-11-27sysfs: drop kobj_ns_type handling, take #2Tejun Heo4-112/+55
2013-11-27Revert "sysfs: handle duplicate removal attempts in sysfs_remove_group()"Greg Kroah-Hartman1-9/+0
2013-11-23sysfs: use a separate locking class for open files depending on mmapTejun Heo1-2/+20
2013-11-23sysfs: handle duplicate removal attempts in sysfs_remove_group()Mika Westerberg1-0/+9
2013-11-07Revert "sysfs: drop kobj_ns_type handling"Linus Torvalds4-43/+121
2013-11-01sysfs: rename sysfs_assoc_lock and explain what it's aboutTejun Heo3-10/+30
2013-11-01sysfs: use generic_file_llseek() for sysfs_file_operationsTejun Heo1-1/+1
2013-10-30sysfs: return correct error code on unimplemented mmap()Vladimir Zapolskiy1-1/+0
2013-10-29sysfs: separate out dup filename warning into a separate functionTejun Heo2-11/+20
2013-10-29sysfs: move sysfs_hash_and_remove() to fs/sysfs/dir.cTejun Heo3-30/+39
2013-10-29sysfs: remove unused sysfs_get_dentry() prototypeTejun Heo1-1/+0
2013-10-29sysfs: honor bin_attr.attr.ignore_lockdepTejun Heo1-1/+3
2013-10-29sysfs: merge sysfs_elem_bin_attr into sysfs_elem_attrTejun Heo3-12/+9
2013-10-25sysfs: fix sysfs_write_file for bin fileMing Lei1-3/+2
2013-10-14sysfs/bin: Fix size handling overflow for bin_attributeBenjamin Herrenschmidt1-1/+1
2013-10-14sysfs: make sysfs_file_ops() follow ignore_lockdep flagTejun Heo3-21/+20
2013-10-05sysfs: merge regular and bin file handlingTejun Heo6-501/+28
2013-10-05sysfs: prepare open path for unified regular / bin file handlingTejun Heo1-25/+33
2013-10-05sysfs: copy bin mmap support from fs/sysfs/bin.c to fs/sysfs/file.cTejun Heo3-1/+249
2013-10-05sysfs: add sysfs_bin_read()Tejun Heo1-0/+65
2013-10-05sysfs: prepare path write for unified regular / bin file handlingTejun Heo2-6/+35
2013-10-05sysfs: collapse fs/sysfs/bin.c::fill_read() into read()Tejun Heo1-21/+15
2013-10-05sysfs: skip bin_buffer->buffer while readingTejun Heo1-13/+8
2013-10-05sysfs: use seq_file when reading regular filesTejun Heo1-91/+73
2013-10-05sysfs: use transient write bufferTejun Heo1-62/+52
2013-10-05sysfs: add sysfs_open_file->sd and ->fileTejun Heo1-11/+12
2013-10-05sysfs: rename sysfs_buffer to sysfs_open_fileTejun Heo1-64/+63
2013-10-05sysfs: add sysfs_open_file_mutexTejun Heo1-6/+12
2013-10-05sysfs: remove sysfs_buffer->opsTejun Heo1-12/+21
2013-10-05sysfs: remove sysfs_buffer->needs_read_fillTejun Heo1-12/+12
2013-10-05sysfs: remove unused sysfs_buffer->posTejun Heo1-1/+0
2013-10-03sysfs: introduce [__]sysfs_remove()Tejun Heo4-28/+29
2013-10-03sysfs: make __sysfs_remove_dir() recursiveTejun Heo1-11/+64
2013-10-03kobject: grab an extra reference on kobject->sd to allow duplicate deletesTejun Heo1-1/+6
2013-10-03sysfs: remove sysfs_addrm_cxt->parent_sdTejun Heo5-36/+38
2013-09-26sysfs: @name comes before @nsTejun Heo7-45/+46
2013-09-26sysfs: clean up sysfs_get_dirent()Tejun Heo5-16/+14
2013-09-26sysfs: drop kobj_ns_type handlingTejun Heo4-122/+44
2013-09-26sysfs: remove ktype->namespace() invocations in symlink codeTejun Heo1-9/+7
2013-09-26sysfs: remove ktype->namespace() invocations in directory codeTejun Heo1-15/+8
2013-09-26sysfs: make attr namespace interface less convolutedTejun Heo3-76/+31
2013-09-26sysfs: drop semicolon from to_sysfs_dirent() definitionTejun Heo1-1/+1
2013-09-07Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-12/+8
2013-09-07Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-2/+9
2013-09-05sysfs: use check_submounts_and_drop()Miklos Szeredi1-12/+8
2013-08-28sysfs: Restrict mounting sysfsEric W. Biederman1-3/+9
2013-08-26userns: Better restrictions on when proc and sysfs can be mountedEric W. Biederman1-1/+2
2013-08-22sysfs: group.c: fix up kerneldocGreg Kroah-Hartman1-2/+2
2013-08-21sysfs: sysfs.h: fix coding style issuesGreg Kroah-Hartman1-8/+10
2013-08-21sysfs: file.c: fix up broken string warningsGreg Kroah-Hartman1-4/+6