Skip to content

feat(sysfs): implement group_remove_files to complete attribute group removal#1873

Merged
oeasy1412 merged 3 commits intoDragonOS-Community:masterfrom
vio-vv:feat/issue-1835
Apr 24, 2026
Merged

feat(sysfs): implement group_remove_files to complete attribute group removal#1873
oeasy1412 merged 3 commits intoDragonOS-Community:masterfrom
vio-vv:feat/issue-1835

Conversation

@vio-vv
Copy link
Copy Markdown
Contributor

@vio-vv vio-vv commented Apr 23, 2026

Fixed #1835

This PR implement the group_remove_files function, complete sysfs attribute group removal, and fix attribute group lifecycle management issues.

Main Changes

  • Implemented the removal logic for each attribute file in the attribute group

    • skipped to check the visibility of attribute file to ensure proper removal
  • Fix the removal logic in remove_dir(&self, kobj: &Arc<dyn KObject>) and kernel/src/filesystem/sysfs/group.rs to avoid accidental removal and directory leak

  • About dunitest: due to unimpletement of init_module syscall, user-space test is not added in this PR

@github-actions github-actions Bot added enhancement New feature or request test Unitest/User space test labels Apr 23, 2026
Signed-off-by: vio-vv <haoweihuang@dragonos.org>
@oeasy1412 oeasy1412 merged commit 8d090fe into DragonOS-Community:master Apr 24, 2026
15 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request test Unitest/User space test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(sysfs): implement group_remove_files to complete attribute group removal

2 participants