include/linux/usb/typec_retimer.h
Source file repositories/reference/linux-study-clean/include/linux/usb/typec_retimer.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/usb/typec_retimer.h- Extension
.h- Size
- 1198 bytes
- Lines
- 46
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/property.hlinux/usb/typec.h
Detected Declarations
struct devicestruct typec_retimerstruct typec_altmodestruct fwnode_handlestruct typec_retimer_statestruct typec_retimer_desc
Annotated Snippet
struct typec_retimer_state {
struct typec_altmode *alt;
unsigned long mode;
void *data;
};
typedef int (*typec_retimer_set_fn_t)(struct typec_retimer *retimer,
struct typec_retimer_state *state);
struct typec_retimer_desc {
struct fwnode_handle *fwnode;
typec_retimer_set_fn_t set;
const char *name;
void *drvdata;
};
struct typec_retimer *fwnode_typec_retimer_get(struct fwnode_handle *fwnode);
void typec_retimer_put(struct typec_retimer *retimer);
int typec_retimer_set(struct typec_retimer *retimer, struct typec_retimer_state *state);
static inline struct typec_retimer *typec_retimer_get(struct device *dev)
{
return fwnode_typec_retimer_get(dev_fwnode(dev));
}
struct typec_retimer *
typec_retimer_register(struct device *parent, const struct typec_retimer_desc *desc);
void typec_retimer_unregister(struct typec_retimer *retimer);
void *typec_retimer_get_drvdata(struct typec_retimer *retimer);
#endif /* __USB_TYPEC_RETIMER */
Annotation
- Immediate include surface: `linux/property.h`, `linux/usb/typec.h`.
- Detected declarations: `struct device`, `struct typec_retimer`, `struct typec_altmode`, `struct fwnode_handle`, `struct typec_retimer_state`, `struct typec_retimer_desc`.
- Atlas domain: Core OS / Core Kernel Interface.
- 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.