Skip to content

Commit

Permalink
LinuxKPI: Stub sysfs_remove_link in linux/sysfs.h
Browse files Browse the repository at this point in the history
sysfs_create_link is stubbed already. Stub sysfs_remove_link too to be
feature-complete.

Sponsored by:	Serenity Cyber Security, LLC
Reviewed by:	emaste
MFC after:	1 week
  • Loading branch information
wulf7 committed Apr 8, 2024
1 parent 56041ee commit 4e7aa03
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sys/compat/linuxkpi/common/include/linux/sysfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@ sysfs_create_link(struct kobject *kobj __unused,
return (0);
}

static inline void
sysfs_remove_link(struct kobject *kobj, const char *name)
{
/* TODO (along with sysfs_create_link) */
}

static inline int
sysfs_create_files(struct kobject *kobj, const struct attribute * const *attrs)
{
Expand Down

0 comments on commit 4e7aa03

Please sign in to comment.