drivers/net/wireless/broadcom/b43/sysfs.c
Source file repositories/reference/linux-study-clean/drivers/net/wireless/broadcom/b43/sysfs.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/broadcom/b43/sysfs.c- Extension
.c- Size
- 2710 bytes
- Lines
- 137
- Domain
- Driver Families
- Bucket
- drivers/net
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/capability.hlinux/io.hb43.hsysfs.hmain.hphy_common.h
Detected Declarations
function Copyrightfunction b43_attr_interfmode_showfunction b43_attr_interfmode_storefunction b43_sysfs_registerfunction b43_sysfs_unregister
Annotated Snippet
if (err) {
b43err(wldev->wl, "Interference Mitigation not "
"supported by device\n");
}
} else
err = -ENOSYS;
mutex_unlock(&wldev->wl->mutex);
return err ? err : count;
}
static DEVICE_ATTR(interference, 0644,
b43_attr_interfmode_show, b43_attr_interfmode_store);
int b43_sysfs_register(struct b43_wldev *wldev)
{
struct device *dev = wldev->dev->dev;
B43_WARN_ON(b43_status(wldev) != B43_STAT_INITIALIZED);
return device_create_file(dev, &dev_attr_interference);
}
void b43_sysfs_unregister(struct b43_wldev *wldev)
{
struct device *dev = wldev->dev->dev;
device_remove_file(dev, &dev_attr_interference);
}
Annotation
- Immediate include surface: `linux/capability.h`, `linux/io.h`, `b43.h`, `sysfs.h`, `main.h`, `phy_common.h`.
- Detected declarations: `function Copyright`, `function b43_attr_interfmode_show`, `function b43_attr_interfmode_store`, `function b43_sysfs_register`, `function b43_sysfs_unregister`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.