drivers/net/wireless/intel/iwlwifi/mld/hcmd.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/intel/iwlwifi/mld/hcmd.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/intel/iwlwifi/mld/hcmd.h- Extension
.h- Size
- 1534 bytes
- Lines
- 57
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
function Copyrightfunction __iwl_mld_send_cmd_with_flags_pdu
Annotated Snippet
#ifndef __iwl_mld_hcmd_h__
#define __iwl_mld_hcmd_h__
static inline int iwl_mld_send_cmd(struct iwl_mld *mld, struct iwl_host_cmd *cmd)
{
/* No commands, including the d3 related commands, should be sent
* after entering d3
*/
#ifdef CONFIG_PM_SLEEP
if (WARN_ON(mld->fw_status.in_d3))
return -EIO;
#endif
if (!(cmd->flags & CMD_ASYNC))
lockdep_assert_wiphy(mld->wiphy);
/* Devices that need to shutdown immediately on rfkill are not
* supported, so we can send all the cmds in rfkill
*/
cmd->flags |= CMD_SEND_IN_RFKILL;
return iwl_trans_send_cmd(mld->trans, cmd);
}
static inline int
__iwl_mld_send_cmd_with_flags_pdu(struct iwl_mld *mld, u32 id,
u32 flags, const void *data, u16 len)
{
struct iwl_host_cmd cmd = {
.id = id,
.len = { data ? len : 0, },
.data = { data, },
.flags = flags,
};
return iwl_mld_send_cmd(mld, &cmd);
}
#define _iwl_mld_send_cmd_with_flags_pdu(mld, id, flags, data, len, \
ignored...) \
__iwl_mld_send_cmd_with_flags_pdu(mld, id, flags, data, len)
#define iwl_mld_send_cmd_with_flags_pdu(mld, id, flags, data, len...) \
_iwl_mld_send_cmd_with_flags_pdu(mld, id, flags, data, ##len, \
sizeof(*(data)))
#define iwl_mld_send_cmd_pdu(mld, id, ...) \
iwl_mld_send_cmd_with_flags_pdu(mld, id, 0, __VA_ARGS__)
#define iwl_mld_send_cmd_empty(mld, id) \
iwl_mld_send_cmd_with_flags_pdu(mld, id, 0, NULL, 0)
#endif /* __iwl_mld_hcmd_h__ */
Annotation
- Detected declarations: `function Copyright`, `function __iwl_mld_send_cmd_with_flags_pdu`.
- Atlas domain: Driver Families / drivers/net.
- 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.