aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/dir.c
AgeCommit message (Expand)AuthorFilesLines
2023-12-07fs/sysfs/dir.c : Fix typo in commentMukesh Ojha1-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
2020-04-20docs: filesystems: fix renamed referencesMauro Carvalho Chehab1-1/+1
2019-01-07sysfs: convert BUG_ON to WARN_ONGreg Kroah-Hartman1-1/+2
2018-07-20sysfs, kobject: allow creating kobject belonging to arbitrary usersDmitry Torokhov1-2/+5
2018-07-20kernfs: allow creating kernfs objects with arbitrary uid/gidDmitry Torokhov1-1/+3
2018-01-23sysfs: remove DEBUG definesGreg Kroah-Hartman1-1/+0
2018-01-23sysfs: use SPDX identifiersGreg Kroah-Hartman1-2/+1
2018-01-22sysfs: turn WARN() into pr_warn()Greg Kroah-Hartman1-2/+3
2016-08-10kernfs: make kernfs_path*() behave in the style of strlcpy()Tejun Heo1-3/+3
2015-07-01sysfs: Add support for permanently empty directories to serve as mount points.Eric W. Biederman1-0/+34
2014-02-07kernfs: implement kernfs_get_parent(), kernfs_name/path() and friendsTejun Heo1-31/+13
2013-12-17kernfs: add @mode to kernfs_create_dir[_ns]()Tejun Heo1-1/+2
2013-12-11kernfs: s/sysfs/kernfs/ in constantsTejun Heo1-1/+1
2013-12-11kernfs: drop s_ prefix from kernfs_node membersTejun Heo1-6/+6
2013-12-11kernfs: s/sysfs_dirent/kernfs_node/ and rename its friends accordinglyTejun Heo1-33/+33
2013-11-29sysfs, kernfs: introduce sysfs_root_sdTejun Heo1-2/+2
2013-11-29sysfs, kernfs: move dir core code to fs/kernfs/dir.cTejun Heo1-986/+0
2013-11-29sysfs, kernfs: introduce kernfs[_find_and]_get() and kernfs_put()Tejun Heo1-50/+67
2013-11-29sysfs, kernfs: revamp sysfs_dirent active_ref lockdep annotationTejun Heo1-2/+2
2013-11-29sysfs, kernfs: remove sysfs_add_one()Tejun Heo1-37/+4
2013-11-29sysfs, kernfs: introduce kernfs_create_dir[_ns]()Tejun Heo1-24/+30
2013-11-29sysfs, kernfs: replace sysfs_dirent->s_dir.kobj and ->s_attr.[bin_]attr with ...Tejun Heo1-1/+1
2013-11-27sysfs, kernfs: introduce kernfs_rename[_ns]()Tejun Heo1-8/+15
2013-11-27sysfs, kernfs: introduce kernfs_remove[_by_name[_ns]]()Tejun Heo1-10/+10
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 Heo1-56/+36
2013-11-07Revert "sysfs: drop kobj_ns_type handling"Linus Torvalds1-24/+64
2013-11-01sysfs: rename sysfs_assoc_lock and explain what it's aboutTejun Heo1-3/+15
2013-10-29sysfs: separate out dup filename warning into a separate functionTejun Heo1-11/+19
2013-10-29sysfs: move sysfs_hash_and_remove() to fs/sysfs/dir.cTejun Heo1-1/+37
2013-10-14sysfs: make sysfs_file_ops() follow ignore_lockdep flagTejun Heo1-20/+2
2013-10-05sysfs: merge regular and bin file handlingTejun Heo1-1/+0
2013-10-05sysfs: copy bin mmap support from fs/sysfs/bin.c to fs/sysfs/file.cTejun Heo1-0/+1
2013-10-03sysfs: introduce [__]sysfs_remove()Tejun Heo1-23/+24
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 Heo1-25/+27
2013-09-26sysfs: @name comes before @nsTejun Heo1-22/+23
2013-09-26sysfs: clean up sysfs_get_dirent()Tejun Heo1-5/+6
2013-09-26sysfs: drop kobj_ns_type handlingTejun Heo1-65/+25
2013-09-26sysfs: remove ktype->namespace() invocations in directory codeTejun Heo1-15/+8
2013-09-26sysfs: drop semicolon from to_sysfs_dirent() definitionTejun Heo1-1/+1
2013-09-05sysfs: use check_submounts_and_drop()Miklos Szeredi1-12/+8
2013-08-21sysfs: dir.c: fix up odd do/while indentationGreg Kroah-Hartman1-7/+8
2013-08-21sysfs: fix up 80 column coding style issuesGreg Kroah-Hartman1-1/+3
2013-08-21sysfs: fix up space coding style issuesGreg Kroah-Hartman1-10/+10
2013-08-21sysfs: remove trailing whitespaceGreg Kroah-Hartman1-1/+1
2013-07-02Merge tag 'driver-core-3.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-1/+1
2013-06-29[readdir] convert sysfsAl Viro1-48/+18
2013-05-17sysfs: sysfs_link_sibling(): fix typo in commentWarner Wang1-1/+1
2013-04-05sysfs: check if one entry has been removed before freeingMing Lei1-1/+8
2013-04-03sysfs: fix use after free in case of concurrent read/write and readdirMing Lei1-4/+11
2013-04-01Merge v3.9-rc5 into driver-core-nextGreg Kroah-Hartman1-1/+16
2013-03-25sysfs: use atomic_inc_unless_negative in sysfs_get_activeMaarten Lankhorst1-15/+2
2013-03-20sysfs: handle failure path correctly for readdir()Ming Lei1-0/+4
2013-03-20sysfs: fix race between readdir and lseekMing Lei1-1/+12
2012-10-24sysfs: sysfs_pathname/sysfs_add_one: Use strlcat() instead of strcat()Geert Uytterhoeven1-8/+8
2012-07-26Merge tag 'driver-core-3.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-0/+10
2012-07-17sysfs: fail dentry revalidation after namespace change fixAndrew Morton1-3/+5
2012-07-17sysfs: fail dentry revalidation after namespace changeGlauber Costa1-0/+8
2012-07-14sysfs: just use d_materialise_unique()Al Viro1-8/+1
2012-07-14sysfs: switch to ->s_d_op and ->d_release()Al Viro1-10/+6
2012-07-14stop passing nameidata to ->lookup()Al Viro1-1/+1
2012-07-14stop passing nameidata * to ->d_revalidate()Al Viro1-2/+2
2012-05-14sysfs: get rid of some lockdep false positivesAlan Stern1-5/+26
2012-05-02sysfs: Removed dup_name entirely in sysfs_renameSasikantha babu1-4/+2
2012-04-10sysfs: handle 'parent deleted before child added'Dan Williams1-0/+3
2012-04-09sysfs: Update the name hash for an entry after changing the namespaceTom Goff1-1/+1
2012-03-08Revert "sysfs: Kill nlink counting."Greg Kroah-Hartman1-0/+6
2012-01-31sysfs: Update the name hash when renaming sysfs entriesEric W. Biederman1-0/+1
2012-01-24sysfs: Kill nlink counting.Eric W. Biederman1-6/+0
2012-01-24sysfs: Store the sysfs inode in an unsigned int.Eric W. Biederman1-2/+2
2012-01-24sysfs: Add s_hash to sysfs_dirent and order directory entries by hashEric W. Biederman1-103/+116
2011-11-01sysfs: Make sysfs_rename safe with sysfs_dirents in rbtrees.Eric W. Biederman1-8/+6
2011-10-25sysfs: Remove support for tagged directories with untagged members (again)Eric W. Biederman1-4/+4
2011-10-25Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds1-0/+14
2011-10-19sysfs: Reject with a warning invalid uses of tagged directories.Eric W. Biederman1-0/+14
2011-10-19sysfs: Remove support for tagged directories with untagged members.Eric W. Biederman1-3/+3
2011-09-26sysfs: add unsigned long cast to prevent compile warningHeiko Carstens1-1/+2
2011-08-22sysfs: use rb-tree for inode number lookupMikulas Patocka1-39/+50
2011-08-22sysfs: remove s_sibling hacksMikulas Patocka1-12/+7
2011-08-22sysfs: use rb-tree for name lookupsMikulas Patocka1-7/+50
2011-08-22sysfs: count subdirectoriesMikulas Patocka1-0/+6
2011-01-07fs: rcu-walk aware d_revalidate methodNick Piggin1-1/+5
2011-01-07fs: dcache reduce branches in lookup pathNick Piggin1-1/+1
2011-01-07fs: change d_delete semanticsNick Piggin1-1/+1
2010-05-21sysfs: Comment sysfs directory tagging logicSerge E. Hallyn1-0/+8
2010-05-21sysfs: Add support for tagged directories with untagged members.Eric W. Biederman1-9/+3
2010-05-21sysfs: Implement sysfs tagged directory support.Eric W. Biederman1-24/+88
2010-03-07sysfs: Pass super_block to sysfs_get_inodeEric W. Biederman1-1/+1
2010-03-07sysfs: Only take active references on attributes.Eric W. Biederman1-1/+4
2010-03-07sysfs: Remove sysfs_get/put_active_twoEric W. Biederman1-41/+2
2010-03-07sysfs: Cache the last sysfs_dirent to improve readdir scalability v2Eric W. Biederman1-22/+60
2010-01-04sysfs: Add lockdep annotations for the sysfs active referenceEric W. Biederman1-2/+12
2009-12-11sysfs: Factor out sysfs_rename from sysfs_rename_dir and sysfs_move_dirEric W. Biederman1-33/+29
2009-12-11sysfs: Propagate renames to the vfs on demandEric W. Biederman1-126/+32
2009-12-11sysfs: Gut sysfs_addrm_start and sysfs_addrm_finishEric W. Biederman1-87/+4
2009-12-11sysfs: Implement sysfs_getattr & sysfs_permissionEric W. Biederman1-0/+2
2009-12-11sysfs: Update s_iattr on link and unlink.Eric W. Biederman1-0/+18
2009-12-11sysfs: Use dentry_ops instead of directly playing with the dcacheEric W. Biederman1-27/+46
2009-12-11sysfs: Rename sysfs_d_iput to sysfs_dentry_iputEric W. Biederman1-2/+2
2009-11-05sysfs: Don't leak secdata when a sysfs_dirent is freed.Eric W. Biederman1-0/+4
2009-10-14sysfs: Allow sysfs_move_dir(..., NULL) again.Cornelia Huck1-1/+2
2009-09-10sysfs: Add labeling support for sysfsDavid P. Quigley1-0/+1
2009-07-28sysfs: fix hardlink count on device_movePeter Oberparleiter1-0/+2
2009-03-27Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+1
2009-03-27constify dentry_operations: sysfsAl Viro1-1/+1
2009-03-24sysfs: don't block indefinitely for unmapped files.Eric W. Biederman1-0/+1
2009-03-24sysfs: sysfs_add_one WARNs with full path to duplicate filenameAlex Chiang1-2/+30
2008-10-23[PATCH] fix ->llseek for more directoriesChristoph Hellwig1-0/+1
2008-10-16kobject: Cleanup kobject_rename and !CONFIG_SYSFSEric W. Biederman1-5/+1
2008-10-16sysfs: use ilookup5() instead of ilookup5_nowait()Tejun Heo1-9/+8
2008-10-16sysfs: Support sysfs_notify from atomic context with new sysfs_notify_direntNeil Brown1-0/+1
2008-07-26Use WARN() in fs/sysfsArjan van de Ven1-4/+1
2008-07-21driver core: Suppress sysfs warnings for device_rename().Cornelia Huck1-2/+35
2008-05-14sysfs: remove error messages for -EEXIST caseStephen Hemminger1-5/+1
2008-04-19SYSFS: Explicitly include required header file slab.h.Robert P. J. Day1-0/+1
2008-01-24sysfs: Fix a copy-n-paste typo in commentJean Delvare1-1/+1
2008-01-16sysfs: fix bugs in sysfs_rename/move_dir()Tejun Heo1-1/+3
2008-01-16sysfs: make sysfs_lookup() return ERR_PTR(-ENOENT) on failed lookupTejun Heo1-1/+3
2007-10-30sysfs: make sysfs_{get,put}_active() staticAdrian Bunk1-2/+2
2007-10-17spin_lock_unlocked cleanupsRoel Kluin1-2/+2
2007-10-17partially fix up the lookup_one_noperm messChristoph Hellwig1-2/+1
2007-10-12sysfs: add copyrightsTejun Heo1-1/+9
2007-10-12sysfs: move sysfs file poll implementation to sysfs_open_direntTejun Heo1-1/+0
2007-10-12sysfs: move sysfs_dirent->s_children into sysfs_dirent->s_dirTejun Heo1-8/+9
2007-10-12sysfs: open code sysfs_attach_dentry()Tejun Heo1-16/+4
2007-10-12sysfs: make s_elem an anonymous unionTejun Heo1-2/+2
2007-10-12sysfs: fix comments of sysfs_add/remove_one()Tejun Heo1-7/+3
2007-10-12sysfs: spit a warning to users when they try to create a duplicate sysfs fileGreg Kroah-Hartman1-1/+5
2007-10-12sysfs: Rewrite sysfs_move_dir in terms of sysfs direntsEric W. Biederman1-16/+18
2007-10-12sysfs: Rewrite rename in terms of sysfs direntsEric W. Biederman1-22/+16
2007-10-12sysfs: Remove s_dentryEric W. Biederman1-28/+4
2007-10-12sysfs: simply sysfs_get_dentryTejun Heo1-75/+16
2007-10-12sysfs: Introduce sysfs_rename_mutexEric W. Biederman1-1/+7
2007-10-12sysfs: Rewrite sysfs_drop_dentry.Eric W. Biederman1-27/+26
2007-10-12sysfs: Simplify readdir.Eric W. Biederman1-131/+44
2007-10-12sysfs: In sysfs_lookup don't open code sysfs_find_direntEric W. Biederman1-3/+1
2007-10-12sysfs: Make sysfs_mount staticEric W. Biederman1-3/+1
2007-10-12sysfs: Remove sysfs_instantiateEric W. Biederman1-1/+1
2007-10-12sysfs: Move all of inode initialization into sysfs_init_inodeEric W. Biederman1-37/+0
2007-10-12sysfs: fix i_mutex locking in sysfs_get_dentry()Tejun Heo1-0/+2
2007-10-12sysfs: make sysfs_addrm_finish() return voidTejun Heo1-6/+1
2007-10-12sysfs: make sysfs_add_one() automatically check for duplicate entryTejun Heo1-9/+17
2007-10-12sysfs: make sysfs_add/remove_one() call link/unlink_sibling() implictlyTejun Heo1-11/+10
2007-10-12sysfs: simplify sysfs_rename_dir()Tejun Heo1-22/+4
2007-10-12sysfs: cosmetic changes in sysfs_lookup()Tejun Heo1-10/+5
2007-10-12sysfs: Remove first pass at shadow directory supportEric W. Biederman1-145/+22
2007-10-12sysfs: cleanup semaphore.hDave Young1-1/+1
2007-10-12kobjects: fix up improper use of the kobject name fieldGreg Kroah-Hartman1-1/+1
2007-08-22sysfs: fix locking in sysfs_lookup() and sysfs_rename_dir()Tejun Heo1-9/+12
2007-07-18sysfs: cosmetic clean up on node creation failure pathsTejun Heo1-5/+7
2007-07-18sysfs: avoid kmem_cache_free(NULL)Akinobu Mita1-6/+7
2007-07-11sysfs: make directory dentries and inodes reclaimableTejun Heo1-105/+126
2007-07-11sysfs: implement sysfs_get_dentry()Tejun Heo1-0/+98
2007-07-11sysfs: move sysfs_drop_dentry() to dir.c and make it staticTejun Heo1-0/+56
2007-07-11sysfs: restructure add/remove paths and fix inode updateTejun Heo1-64/+186
2007-07-11sysfs: use sysfs_mutex to protect the sysfs_dirent treeTejun Heo1-30/+71
2007-07-11sysfs: consolidate sysfs spinlocksTejun Heo1-10/+9
2007-07-11sysfs: make kobj point to sysfs_dirent instead of dentryTejun Heo1-60/+59
2007-07-11sysfs: implement sysfs_find_dirent() and sysfs_get_dirent()Tejun Heo1-17/+44
2007-07-11sysfs: implement SYSFS_FLAG_REMOVED flagTejun Heo1-1/+3
2007-07-11sysfs: rename sysfs_dirent->s_type to s_flags and make room for flagsTejun Heo1-13/+20
2007-07-11sysfs: use singly-linked list for sysfs_dirent treeTejun Heo1-44/+102
2007-07-11sysfs: slim down sysfs_dirent->s_activeTejun Heo1-26/+48
2007-07-11sysfs: move s_active functions to fs/sysfs/dir.cTejun Heo1-0/+88
2007-07-11sysfs: use iget_locked() instead of new_inode()Tejun Heo1-16/+21
2007-07-11sysfs: reorganize sysfs_new_indoe() and sysfs_create()Tejun Heo1-82/+48
2007-07-11sysfs: fix parent refcounting during rename and moveTejun Heo1-0/+6
2007-07-11sysfs: make sysfs_alloc_ino() staticTejun Heo1-1/+1
2007-07-11sysfs: reimplement sysfs_drop_dentry()Tejun Heo1-13/+5
2007-07-11sysfs: separate out sysfs_attach_dentry()Tejun Heo1-33/+26
2007-07-11sysfs: implement sysfs_dirent active reference and immediate disconnectTejun Heo1-3/+25
2007-07-11sysfs: reimplement symlink using sysfs_dirent treeTejun Heo1-1/+1
2007-07-11sysfs: implement kobj_sysfs_assoc_lockTejun Heo1-1/+7
2007-07-11sysfs: make sysfs_dirent->s_element a unionTejun Heo1-17/+14
2007-07-11sysfs: add sysfs_dirent->s_nameTejun Heo1-23/+44
2007-07-11sysfs: add sysfs_dirent->s_parentTejun Heo1-7/+23
2007-07-11sysfs: consolidate sysfs_dirent creation functionsTejun Heo1-57/+25
2007-07-11sysfs: flatten and fix sysfs_rename_dir() error handlingTejun Heo1-32/+41
2007-07-11sysfs: flatten cleanup paths in sysfs_add_link() and create_dir()Tejun Heo1-30/+43
2007-07-11sysfs: allocate inode number using idaTejun Heo1-9/+36
2007-07-11sysfs: move release_sysfs_dirent() to dir.cTejun Heo1-0/+12
2007-06-12sysfs: fix race condition around sd->s_dentry, take#2Tejun Heo1-2/+20
2007-06-12sysfs: store sysfs inode nrs in s_ino to avoid readdir oopsesEric Sandeen1-5/+11
2007-03-06[PATCH] Fix 2.6.21 rfcomm lockupsMark Lord1-0/+2
2007-02-12[PATCH] mark struct inode_operations const 3Arjan van de Ven1-1/+1
2007-02-11[PATCH] Transform kmem_cache_alloc()+memset(0) -> kmem_cache_zalloc().Robert P. J. Day1-2/+1
2007-02-07sysfs: Shadow directory supportEric W. Biederman1-35/+172
2007-02-07Driver core: fix race in sysfs between sysfs_remove_file() and read()/write()Oliver Neukum1-0/+1
2007-02-07driver core: Allow device_move(dev, NULL).Cornelia Huck1-4/+2
2006-12-08[PATCH] sysfs: change uses of f_{dentry, vfsmnt} to use f_pathJosef "Jeff" Sipek1-5/+5
2006-12-01driver core: Introduce device_move(): move a device to a new parent.Cornelia Huck1-0/+45
2006-10-01[PATCH] r/o bind mount prepwork: inc_nlink() helperDave Hansen1-2/+2
2006-09-25sysfs: Make poll behaviour consistentJuha Yrjölä1-1/+1
2006-06-26[PATCH] core: use list_move()Akinobu Mita1-6/+4
2006-04-14[PATCH] sysfs: Allow sysfs attribute files to be pollableNeilBrown1-0/+1
2006-04-02Documentation: fix minor kernel-doc warningsMartin Waitz1-1/+1
2006-03-28[PATCH] Make most file operations structs in fs/ constArjan van de Ven1-1/+1