Project

General

Profile

Feature #5898

151: Correct usage of sysfs groups

Added by Vadim Mutilin almost 4 years ago. Updated almost 4 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
Start date:
05/06/2015
Due date:
% Done:

0%

Estimated time:
Published in build:

Description

Summary

The module should not delete a group which was not previously created for a virtual file system.
The module should not recreate a group and should not delete already deleted group.

At the end the module should delete all previously created groups.

Description
Sysfs groups are created with the help of
int sysfs_create_group(struct kobject *, const struct attribute_group *) and
static inline int sysfs_create_group(struct kobject *, const struct attribute_group *).
Sysfs groups are removed with void sysfs_remove_group(struct kobject *, const struct attribute_group *)
and static inline void sysfs_remove_group(struct kobject *, const struct attribute_group *).

Links
Sample bugfix a5ba67d

History

#1 Updated by Vadim Mutilin almost 4 years ago

  • Description updated (diff)

Also available in: Atom PDF