aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/file.c
AgeCommit message (Expand)AuthorFilesLines
2024-04-11fs: sysfs: Fix reference leak in sysfs_break_active_protection()Alan Stern1-0/+2
2023-10-05kernfs: sysfs: support custom llseek method for sysfs entriesValentine Sinitsyn1-0/+13
2022-04-05kobject: kobj_type: remove default_attrsGreg Kroah-Hartman1-13/+0
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 Hellwig1-54/+66
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-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 Chehab1-1/+1
2020-02-26sysfs: add sysfs_change_owner()Christian Brauner1-0/+60
2020-02-26sysfs: add sysfs_link_change_owner()Christian Brauner1-0/+41
2020-02-26sysfs: add sysfs_file_change_owner()Christian Brauner1-0/+47
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-Hartman1-2/+4
2018-12-03sysfs: constify sysfs create/remove files harderJani Nikula1-2/+2
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 Torokhov1-12/+20
2018-07-20kernfs: allow creating kernfs objects with arbitrary uid/gidDmitry Torokhov1-2/+3
2018-02-01Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/pml...Linus Torvalds1-3/+2
2018-01-23sysfs: use SPDX identifiersGreg Kroah-Hartman1-2/+1
2018-01-05sysfs: do not use print_symbol()Sergey Senozhatsky1-3/+2
2017-04-08sysfs: be careful of error returns from ops->show()NeilBrown1-2/+4
2016-08-31sysfs: correctly handle read offset on PREALLOC attrsKonstantin Khlebnikov1-1/+7
2015-10-04sysfs: correctly handle short reads on PREALLOC attrs.NeilBrown1-1/+3
2015-06-01fs: sysfs: don't pass count == 0 to bin file readersVladimir Zapolskiy1-1/+1
2015-02-13kernfs: remove KERNFS_STATIC_NAMETejun Heo1-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-20sysfs: make sure read buffer is zeroedTejun 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-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: mark static names with KERNFS_STATIC_NAMETejun Heo1-2/+2
2013-12-11kernfs: s/sysfs/kernfs/ in constantsTejun Heo1-1/+1
2013-12-11kernfs: s/sysfs/kernfs/ in various data structuresTejun Heo1-5/+5
2013-12-11kernfs: drop s_ prefix from kernfs_node membersTejun Heo1-8/+8
2013-12-11kernfs: s/sysfs_dirent/kernfs_node/ and rename its friends accordinglyTejun Heo1-61/+61
2013-12-10sysfs: bail early from kernfs_file_mmap() to avoid spurious lockdep warningTejun Heo1-4/+8
2013-11-29sysfs, kernfs: move file core code to fs/kernfs/file.cTejun Heo1-801/+1
2013-11-29sysfs, kernfs: introduce kernfs[_find_and]_get() and kernfs_put()Tejun Heo1-18/+23
2013-11-29sysfs, kernfs: revamp sysfs_dirent active_ref lockdep annotationTejun Heo1-11/+24
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 Heo1-1/+1
2013-11-29sysfs, kernfs: introduce kernfs_create_file[_ns]()Tejun Heo1-11/+42
2013-11-29sysfs, kernfs: remove SYSFS_KOBJ_BIN_ATTRTejun Heo1-15/+8
2013-11-29sysfs, kernfs: add sysfs_dirent->s_attr.sizeTejun Heo1-0/+6
2013-11-29sysfs, kernfs: introduce kernfs_opsTejun Heo1-34/+112
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 Heo1-17/+7
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: replace sysfs_dirent->s_dir.kobj and ->s_attr.[bin_]attr with ...Tejun Heo1-13/+13
2013-11-27Merge branch 'driver-core-linus' into driver-core-nextGreg Kroah-Hartman1-2/+20
2013-11-27sysfs, kernfs: introduce kernfs_setattr()Tejun Heo1-8/+5
2013-11-27sysfs, kernfs: introduce kernfs_remove[_by_name[_ns]]()Tejun Heo1-3/+3
2013-11-23sysfs: use a separate locking class for open files depending on mmapTejun Heo1-2/+20
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: merge sysfs_elem_bin_attr into sysfs_elem_attrTejun Heo1-4/+4
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 Heo1-1/+2
2013-10-05sysfs: merge regular and bin file handlingTejun Heo1-0/+26
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 Heo1-1/+246
2013-10-05sysfs: add sysfs_bin_read()Tejun Heo1-0/+65
2013-10-05sysfs: prepare path write for unified regular / bin file handlingTejun Heo1-6/+34
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: remove sysfs_addrm_cxt->parent_sdTejun Heo1-2/+2
2013-09-26sysfs: @name comes before @nsTejun Heo1-5/+5
2013-09-26sysfs: clean up sysfs_get_dirent()Tejun Heo1-2/+2
2013-09-26sysfs: make attr namespace interface less convolutedTejun Heo1-71/+24
2013-08-21sysfs: file.c: fix up broken string warningsGreg Kroah-Hartman1-4/+6
2013-08-21sysfs: fix up uaccess.h coding style warningsGreg Kroah-Hartman1-1/+1
2013-08-21sysfs: fix up 80 column coding style issuesGreg Kroah-Hartman1-5/+4
2013-08-21sysfs: fix up space coding style issuesGreg Kroah-Hartman1-16/+16
2013-08-21sysfs: remove trailing whitespaceGreg Kroah-Hartman1-12/+10
2013-08-21sysfs: fix placement of EXPORT_SYMBOL()Greg Kroah-Hartman1-9/+4
2013-06-07sysfs_notify is only possible on file attributesNick Dyer1-4/+6
2012-11-26sysfs: Mark sysfs_attr_ns staticJosh Triplett1-2/+2
2012-01-24sysfs: Complain bitterly about attempts to remove files from nonexistent dire...Eric W. Biederman1-0/+6
2012-01-03sysfs: propagate umode_tAl Viro1-1/+1
2012-01-03switch sysfs_chmod_file() to umode_tAl Viro1-1/+1
2011-10-19sysfs: Reject with a warning invalid uses of tagged directories.Eric W. Biederman1-3/+0
2011-10-19sysfs: Implement support for tagged files in sysfs.Eric W. Biederman1-2/+51
2011-05-13sysfs: remove "last sysfs file:" line from the oops messagesGreg Kroah-Hartman1-12/+0
2010-09-03sysfs: checking for NULL instead of ERR_PTRDan Carpenter1-1/+1
2010-08-05sysfs: sysfs_chmod_file's attr can be constJean Delvare1-1/+2
2010-05-21sysfs: Implement sysfs tagged directory support.Eric W. Biederman1-7/+10
2010-03-07sysfs: Only take active references on attributes.Eric W. Biederman1-0/+1
2010-03-07sysfs: Remove sysfs_get/put_active_twoEric W. Biederman1-9/+9
2010-03-07Driver core: Constify struct sysfs_ops in struct kobj_typeEmese Revfy1-4/+4
2010-03-07sysfs: Add sysfs_add/remove_files utility functionsAndi Kleen1-0/+20
2009-12-11sysfs: In sysfs_chmod_file lazily propagate the mode change.Eric W. Biederman1-23/+8
2009-12-11sysfs: Simplify sysfs_chmod_file semanticsEric W. Biederman1-9/+1
2009-10-14sysfs: Allow sysfs_notify_dirent to be called from interrupt context.Neil Brown1-6/+8
2009-05-28sysfs: file.c: use create_singlethread_workqueue()Andrew Morton1-1/+1
2009-04-16sysfs: sysfs poll keep the poll rule of regular file.KOSAKI Motohiro1-2/+2
2009-04-16sysfs: don't use global workqueue in sysfs_schedule_callback()Alex Chiang1-1/+11
2009-03-24sysfs: only allow one scheduled removal callback per kobjAlex Chiang1-3/+23
2008-10-16sysfs: Make dir and name args to sysfs_notify() constTrent Piepho1-1/+1
2008-10-16sysfs: Support sysfs_notify from atomic context with new sysfs_notify_direntNeil Brown1-13/+18
2008-10-16sysfs: crash debuggingAndrew Morton1-0/+13
2008-07-26Use WARN() in fs/sysfsArjan van de Ven1-2/+1
2008-07-21sysfs: don't call notify_changeMiklos Szeredi1-1/+4
2008-04-30fs: replace remaining __FUNCTION__ occurrencesHarvey Harrison1-1/+1
2008-04-22[SCSI] sysfs: make group is_valid return a mode_tJames Bottomley1-4/+10
2008-04-19sysfs: refill attribute buffer when reading from offset 0Dan Williams1-3/+2
2008-04-19SYSFS: Explicitly include required header file slab.h.Robert P. J. Day1-0/+1
2008-03-24driver core: debug for bad dev_attr_show() return value.Andrew Morton1-1/+7
2008-01-25Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6Linus Torvalds1-2/+9
2008-01-24Driver Core: kill subsys_attribute and default sysfs opsKay Sievers1-53/+10
2008-01-24kobject: remove struct kobj_type from struct ksetGreg Kroah-Hartman1-3/+1
2008-01-24sysfs: remove SPIN_LOCK_UNLOCKEDJiri Slaby1-1/+1
2008-01-23[SCSI] sysfs: fix the sysfs_add_file_to_group interfacesJames Bottomley1-2/+9
2007-11-28sysfs: fix off-by-one error in fill_read_buffer()Miao Xie1-1/+5
2007-10-20sysfs: trivial: fix sysfs_create_file kerneldoc spelling mistakeChris Malley1-1/+1
2007-10-12sysfs: add copyrightsTejun Heo1-1/+9
2007-10-12sysfs: move sysfs file poll implementation to sysfs_open_direntTejun Heo1-6/+19
2007-10-12sysfs: implement sysfs_open_direntTejun Heo1-1/+108
2007-10-12sysfs: make s_elem an anonymous unionTejun Heo1-7/+7
2007-10-12sysfs: kill unnecessary NULL pointer check in sysfs_release()Tejun Heo1-5/+4
2007-10-12sysfs: kill unnecessary sysfs_get() in open pathsTejun Heo1-5/+1
2007-10-12sysfs: kill sysfs_update_file()Tejun Heo1-40/+0
2007-10-12sysfs: fix sysfs_chmod_file() such that it updates sd->s_mode tooTejun Heo1-0/+9
2007-10-12sysfs: Introduce sysfs_rename_mutexEric W. Biederman1-0/+4
2007-10-12sysfs: Fix typos in fs/sysfs/file.cRolf Eike Beer1-1/+1
2007-10-12sysfs: make sysfs_add_one() automatically check for duplicate entryTejun Heo1-7/+5
2007-10-12sysfs: make sysfs_add/remove_one() call link/unlink_sibling() implictlyTejun Heo1-3/+1
2007-10-12sysfs/file.c - use mutex instead of semaphoreDave Young1-7/+7
2007-07-18sysfs: cosmetic clean up on node creation failure pathsTejun Heo1-4/+5
2007-07-11sysfs: make directory dentries and inodes reclaimableTejun Heo1-75/+59
2007-07-11sysfs: restructure add/remove paths and fix inode updateTejun Heo1-9/+8
2007-07-11sysfs: use sysfs_mutex to protect the sysfs_dirent treeTejun Heo1-16/+15
2007-07-11sysfs: make kobj point to sysfs_dirent instead of dentryTejun Heo1-23/+24
2007-07-11sysfs: implement sysfs_find_dirent() and sysfs_get_dirent()Tejun Heo1-1/+1
2007-07-11sysfs: kill unnecessary attribute->ownerTejun Heo1-16/+5
2007-07-11sysfs: kill attribute file orphaningTejun Heo1-52/+13
2007-07-11sysfs: implement sysfs_dirent active reference and immediate disconnectTejun Heo1-54/+76
2007-07-11sysfs: make sysfs_dirent->s_element a unionTejun Heo1-9/+10
2007-07-11sysfs: add sysfs_dirent->s_nameTejun Heo1-1/+1
2007-07-11sysfs: consolidate sysfs_dirent creation functionsTejun Heo1-5/+16
2007-05-09use simple_read_from_buffer() in fs/Akinobu Mita1-31/+2
2007-05-02remove "struct subsystem" as it is no longer neededGreg Kroah-Hartman1-6/+5
2007-04-27device_schedule_callback() needs a module referenceAlan Stern1-3/+11
2007-03-15[PATCH] sysfs: reinstate exclusion between method calls and attribute unregis...Alan Stern1-5/+5
2007-03-15[PATCH] sysfs and driver core: add callback helper, used by SCSI and S390Alan Stern1-0/+54
2007-02-23sysfs: allow attributes to be added to groupsAlan Stern1-0/+44
2007-02-16PCI/sysfs/kobject kernel-doc fixesRandy Dunlap1-1/+1
2007-02-07sysfs: error handling in sysfs, fill_read_buffer()Oliver Neukum1-4/+6
2007-02-07sysfs: kobject_put cleanupMariusz Kozlowski1-3/+2
2007-02-07Driver core: fix race in sysfs between sysfs_remove_file() and read()/write()Oliver Neukum1-17/+50
2006-12-08[PATCH] sysfs: change uses of f_{dentry, vfsmnt} to use f_pathJosef "Jeff" Sipek1-8/+8
2006-12-01sysfs: sysfs_write_file() writes zero terminated dataThomas Maier1-0/+3
2006-10-18sysfs: update obsolete comment in sysfs_update_fileHidetoshi Seto1-1/+1
2006-10-18sysfs: remove duplicated dput in sysfs_update_fileHidetoshi Seto1-5/+0
2006-10-03[PATCH] pr_debug: sysfs: use size_t length modifier in pr_debug format argumentsZach Brown1-2/+2
2006-04-14[PATCH] sysfs: Allow sysfs attribute files to be pollableNeilBrown1-0/+76
2006-04-02[PATCH] sysfs: zero terminate sysfs write buffersGreg Kroah-Hartman1-1/+1
2006-03-28[PATCH] Make most file operations structs in fs/ constArjan van de Ven1-1/+1
2006-03-20[PATCH] sysfs: fix problem with duplicate sysfs directories and filesManeesh Soni1-2/+4
2006-03-20[PATCH] sysfs: kzalloc conversionEric Sesterhenn1-2/+1
2006-01-09[PATCH] mutex subsystem, semaphore to mutex: VFS, ->i_semJes Sorensen1-9/+8
2005-07-29[PATCH] sysfs: fix sysfs_chmod_fileManeesh Soni1-8/+10
2005-07-12[PATCH] inotifyRobert Love1-5/+2
2005-06-24[PATCH] DocBook: update commentsMartin Waitz1-2/+3
2005-06-23[PATCH] remove duplicate get_dentry functions in various placesChristoph Hellwig1-2/+3
2005-06-20[PATCH] SYSFS: fix PAGE_SIZE checkJon Smirl1-1/+1
2005-06-20[PATCH] sysfs: if show/store is missing return -EIODmitry Torokhov1-2/+2
2005-05-01[PATCH] DocBook: fix some descriptionsMartin Waitz1-2/+2
2005-04-18[PATCH] sysfs: add sysfs_chmod_file()Kay Sievers1-0/+35
2005-04-16Linux-2.6.12-rc2v2.6.12-rc2Linus Torvalds1-0/+447