net/wireless/rdev-ops.h
Source file repositories/reference/linux-study-clean/net/wireless/rdev-ops.h
File Facts
- System
- Linux kernel
- Corpus path
net/wireless/rdev-ops.h- Extension
.h- Size
- 47511 bytes
- Lines
- 1640
- Domain
- Networking Core
- Bucket
- Sockets, Protocols, Packet Path, And Network Policy
- Inferred role
- Networking Core: implementation source
- Status
- source implementation candidate
Why This File Exists
Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.
- Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/rtnetlink.hnet/cfg80211.hcore.htrace.h
Detected Declarations
function Copyrightfunction rdev_resumefunction rdev_set_wakeupfunction rdev_del_virtual_intffunction rdev_change_virtual_intffunction rdev_add_keyfunction rdev_get_keyfunction rdev_del_keyfunction rdev_set_default_keyfunction rdev_set_default_mgmt_keyfunction rdev_set_default_beacon_keyfunction rdev_start_apfunction rdev_change_beaconfunction rdev_stop_apfunction rdev_add_stationfunction rdev_del_stationfunction rdev_change_stationfunction rdev_get_stationfunction rdev_dump_stationfunction rdev_add_mpathfunction rdev_del_mpathfunction rdev_change_mpathfunction rdev_get_mpathfunction rdev_get_mppfunction rdev_dump_mpathfunction rdev_dump_mppfunction rdev_get_mesh_configfunction rdev_update_mesh_configfunction rdev_join_meshfunction rdev_leave_meshfunction rdev_join_ocbfunction rdev_leave_ocbfunction rdev_change_bssfunction rdev_inform_bssfunction rdev_set_txq_paramsfunction rdev_libertas_set_mesh_channelfunction rdev_set_monitor_channelfunction rdev_scanfunction rdev_abort_scanfunction rdev_authfunction rdev_assocfunction rdev_deauthfunction rdev_disassocfunction rdev_connectfunction rdev_update_connect_paramsfunction rdev_disconnectfunction rdev_join_ibssfunction rdev_leave_ibss
Annotated Snippet
#ifndef __CFG80211_RDEV_OPS
#define __CFG80211_RDEV_OPS
#include <linux/rtnetlink.h>
#include <net/cfg80211.h>
#include "core.h"
#include "trace.h"
static inline int rdev_suspend(struct cfg80211_registered_device *rdev,
struct cfg80211_wowlan *wowlan)
{
int ret;
trace_rdev_suspend(&rdev->wiphy, wowlan);
ret = rdev->ops->suspend(&rdev->wiphy, wowlan);
trace_rdev_return_int(&rdev->wiphy, ret);
return ret;
}
static inline int rdev_resume(struct cfg80211_registered_device *rdev)
{
int ret;
trace_rdev_resume(&rdev->wiphy);
ret = rdev->ops->resume(&rdev->wiphy);
trace_rdev_return_int(&rdev->wiphy, ret);
return ret;
}
static inline void rdev_set_wakeup(struct cfg80211_registered_device *rdev,
bool enabled)
{
trace_rdev_set_wakeup(&rdev->wiphy, enabled);
rdev->ops->set_wakeup(&rdev->wiphy, enabled);
trace_rdev_return_void(&rdev->wiphy);
}
static inline struct wireless_dev
*rdev_add_virtual_intf(struct cfg80211_registered_device *rdev, char *name,
unsigned char name_assign_type,
enum nl80211_iftype type,
struct vif_params *params)
{
struct wireless_dev *ret;
trace_rdev_add_virtual_intf(&rdev->wiphy, name, type);
ret = rdev->ops->add_virtual_intf(&rdev->wiphy, name, name_assign_type,
type, params);
trace_rdev_return_wdev(&rdev->wiphy, ret);
return ret;
}
static inline int
rdev_del_virtual_intf(struct cfg80211_registered_device *rdev,
struct wireless_dev *wdev)
{
int ret;
trace_rdev_del_virtual_intf(&rdev->wiphy, wdev);
ret = rdev->ops->del_virtual_intf(&rdev->wiphy, wdev);
trace_rdev_return_int(&rdev->wiphy, ret);
return ret;
}
static inline int
rdev_change_virtual_intf(struct cfg80211_registered_device *rdev,
struct net_device *dev, enum nl80211_iftype type,
struct vif_params *params)
{
int ret;
trace_rdev_change_virtual_intf(&rdev->wiphy, dev, type);
ret = rdev->ops->change_virtual_intf(&rdev->wiphy, dev, type, params);
trace_rdev_return_int(&rdev->wiphy, ret);
return ret;
}
static inline int rdev_add_key(struct cfg80211_registered_device *rdev,
struct wireless_dev *wdev, int link_id,
u8 key_index, bool pairwise, const u8 *mac_addr,
struct key_params *params)
{
int ret;
trace_rdev_add_key(&rdev->wiphy, wdev, link_id, key_index, pairwise,
mac_addr, params->mode);
ret = rdev->ops->add_key(&rdev->wiphy, wdev, link_id, key_index,
pairwise, mac_addr, params);
trace_rdev_return_int(&rdev->wiphy, ret);
return ret;
}
static inline int
rdev_get_key(struct cfg80211_registered_device *rdev, struct wireless_dev *wdev,
int link_id, u8 key_index, bool pairwise, const u8 *mac_addr,
void *cookie,
Annotation
- Immediate include surface: `linux/rtnetlink.h`, `net/cfg80211.h`, `core.h`, `trace.h`.
- Detected declarations: `function Copyright`, `function rdev_resume`, `function rdev_set_wakeup`, `function rdev_del_virtual_intf`, `function rdev_change_virtual_intf`, `function rdev_add_key`, `function rdev_get_key`, `function rdev_del_key`, `function rdev_set_default_key`, `function rdev_set_default_mgmt_key`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: source implementation candidate.
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.