Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
4856e09e
Commit
4856e09e
authored
Oct 31, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://ldm.bkbits.net/linux-2.5-kobject
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
1baa95c5
b053262f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
fs/partitions/check.c
fs/partitions/check.c
+0
-1
lib/kobject.c
lib/kobject.c
+9
-6
No files found.
fs/partitions/check.c
View file @
4856e09e
...
...
@@ -355,7 +355,6 @@ static struct attribute * default_attrs[] = {
extern
struct
subsystem
block_subsys
;
static
struct
subsystem
part_subsys
=
{
.
kobj
=
{
.
name
=
"part"
},
.
parent
=
&
block_subsys
,
.
default_attrs
=
default_attrs
,
.
sysfs_ops
=
&
part_sysfs_ops
,
...
...
lib/kobject.c
View file @
4856e09e
...
...
@@ -2,9 +2,10 @@
* kobject.c - library routines for handling generic kernel objects
*/
#define DEBUG
1
#define DEBUG
0
#include <linux/kobject.h>
#include <linux/string.h>
#include <linux/module.h>
#include <linux/stat.h>
...
...
@@ -76,11 +77,13 @@ int kobject_register(struct kobject * kobj)
}
up_write
(
&
s
->
rwsem
);
}
error
=
sysfs_create_dir
(
kobj
);
if
(
!
error
)
{
error
=
kobject_populate_dir
(
kobj
);
if
(
error
)
sysfs_remove_dir
(
kobj
);
if
(
strlen
(
kobj
->
name
))
{
error
=
sysfs_create_dir
(
kobj
);
if
(
!
error
)
{
error
=
kobject_populate_dir
(
kobj
);
if
(
error
)
sysfs_remove_dir
(
kobj
);
}
}
return
error
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment