08 Dec, 2014
1 commit
-
Signed-off-by: John de la Garza
Signed-off-by: Jonathan Corbet
08 Dec, 2013
1 commit
-
There's no "unlink from sysfs" interface for ksets, so I think callers of
kset_unregister() expect the kset to be removed from sysfs immediately,
without waiting for the last reference to be released.This patch makes the sysfs removal happen immediately, so the caller may
create a new kset with the same name as soon as kset_unregister() returns.
Without this, every caller has to call "kobject_del(&kset->kobj)" first
unless it knows it will never create a new kset with the same name.This sometimes shows up on module unload and reload, where the reload fails
because it tries to create a kobject with the same name as one from the
original load that still exists. CONFIG_DEBUG_KOBJECT_RELEASE=y makes this
problem easier to hit.Signed-off-by: Bjorn Helgaas
Signed-off-by: Greg Kroah-Hartman
05 Sep, 2012
1 commit
-
kobj_type replaced by verbatim copy-and-paste from kobject.h.
Signed-off-by: Robert P. J. Day
Signed-off-by: Greg Kroah-Hartman
16 Feb, 2012
1 commit
-
My old email address was used in a lot of documentation files, so fix
this up to point to the correct one now.Signed-off-by: Greg Kroah-Hartman
19 Mar, 2010
2 commits
-
Signed-off-by: Robert P. J. Day
Signed-off-by: Greg Kroah-Hartman -
Replace uio_mem example for kobjects with uio_map, since the uio_mem
struct no longer contains a kobject.Signed-off-by: Robert P. J. Day
Signed-off-by: Greg Kroah-Hartman
08 Mar, 2010
1 commit
-
Constify struct sysfs_ops.
This is part of the ops structure constification
effort started by Arjan van de Ven et al.Benefits of this constification:
* prevents modification of data that is shared
(referenced) by many other structure instances
at runtime* detects/prevents accidental (but not intentional)
modification attempts on archs that enforce
read-only kernel data at runtime* potentially better optimized code as the compiler
can assume that the const data cannot be changed* the compiler/linker move const data into .rodata
and therefore exclude them from false sharingSigned-off-by: Emese Revfy
Acked-by: David Teigland
Acked-by: Matt Domsch
Acked-by: Maciej Sosnowski
Acked-by: Hans J. Koch
Acked-by: Pekka Enberg
Acked-by: Jens Axboe
Acked-by: Stephen Hemminger
Signed-off-by: Greg Kroah-Hartman
13 Jun, 2009
1 commit
-
Fix various typos in documentation txts.
Signed-off-by: Matt LaPlante
Signed-off-by: Jiri Kosina
07 Jan, 2009
1 commit
-
While reading Documentation/kobject.txt:
Note kobject_rename does perform any locking or have a solid notion of
what names are valid so the provide must provide their own sanity checking
and serialization.I expect better: You never see me hard with time word making sentence
coherent stuff. Ever.Signed-off-by: Rusty Russell
Acked-by: Eric W. Biederman
Signed-off-by: Greg Kroah-Hartman
17 Oct, 2008
1 commit
-
When looking at kobject_rename I found two bugs with
that exist when sysfs support is disabled in the kernel.kobject_rename does not change the name on the kobject when
sysfs support is not compiled in.kobject_rename without locking attempts to check the
validity of a rename operation, which the kobject layer
simply does not have the infrastructure to do.This patch documents the previously unstated requirement of
kobject_rename that is the responsibility of the caller to
provide mutual exclusion and to be certain that the new_name
for the kobject is valid.This patch modifies sysfs_rename_dir in !CONFIG_SYSFS case
to call kobject_set_name to actually change the kobject_name.This patch removes the bogus and misleading check in kobject_rename
that attempts to see if a rename is valid. The check is bogus
because we do not have the proper locking. The check is misleading
because it looks like we can and do perform checking at the kobject
level that we don't.Signed-off-by: Eric W. Biederman
Signed-off-by: Greg Kroah-Hartman
12 Jun, 2008
1 commit
-
Signed-off-by: David Brigada
Signed-off-by: Greg Kroah-Hartman
25 Jan, 2008
2 commits
-
This provides a much-needed kobject and kset documentation update.
Thanks to Kay Sievers, Alan Stern, Jonathan Corbet, Randy Dunlap, Jan
Engelhardt, and others for reviewing and providing help with this
document.Cc: Kay Sievers
Signed-off-by: Greg Kroah-Hartman -
As we are replacing the documentation, it's easier to do this in a two
stage pass, delete the old file and add the new one.Cc: Kay Sievers
Signed-off-by: Greg Kroah-Hartman
13 Oct, 2007
2 commits
-
There is only one user of it, and it is only a wrapper for kset_init().
Signed-off-by: Greg Kroah-Hartman
-
Signed-off-by: Cornelia Huck
Signed-off-by: Greg Kroah-Hartman
31 Jul, 2007
1 commit
-
Update kobject documentation:
- Update structure definitions.
- Remove documentation of removed struct subsystem.(First shot, uevent_ops probably need some documentation as well.)
Signed-off-by: Cornelia Huck
Signed-off-by: Greg Kroah-Hartman
04 Oct, 2006
1 commit
-
This patch fixes typos in various Documentation txts. This patch addresses
some words starting with the letters 'D'-'E'.Signed-off-by: Matt LaPlante
Signed-off-by: Adrian Bunk
12 Aug, 2006
1 commit
-
block/genhd.c no longer in drivers/. Update Documentation/kobjects.txt
Signed-off-by: Brandon Philips
Signed-off-by: Greg Kroah-Hartman
17 Apr, 2005
1 commit
-
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.Let it rip!