include/linux/memstick.h
Source file repositories/reference/linux-study-clean/include/linux/memstick.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/memstick.h- Extension
.h- Size
- 9838 bytes
- Lines
- 345
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: operation-table or driver-model contract
- Status
- pattern 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 an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/workqueue.hlinux/scatterlist.hlinux/device.h
Detected Declarations
struct ms_status_registerstruct ms_id_registerstruct ms_param_registerstruct ms_extra_data_registerstruct ms_registerstruct mspro_param_registerstruct mspro_io_info_registerstruct mspro_io_func_registerstruct mspro_io_cmd_registerstruct mspro_registerstruct ms_register_addrstruct memstick_hoststruct memstick_driverstruct memstick_device_idstruct memstick_requeststruct memstick_devstruct memstick_hoststruct memstick_driverenum memstick_tpcenum memstick_commandenum memstick_paramfunction memstick_set_drvdata
Annotated Snippet
struct device_driver driver;
};
int memstick_register_driver(struct memstick_driver *drv);
void memstick_unregister_driver(struct memstick_driver *drv);
struct memstick_host *memstick_alloc_host(unsigned int extra,
struct device *dev);
int memstick_add_host(struct memstick_host *host);
void memstick_remove_host(struct memstick_host *host);
void memstick_free_host(struct memstick_host *host);
void memstick_detect_change(struct memstick_host *host);
void memstick_suspend_host(struct memstick_host *host);
void memstick_resume_host(struct memstick_host *host);
void memstick_init_req_sg(struct memstick_request *mrq, unsigned char tpc,
const struct scatterlist *sg);
void memstick_init_req(struct memstick_request *mrq, unsigned char tpc,
const void *buf, size_t length);
int memstick_next_req(struct memstick_host *host,
struct memstick_request **mrq);
void memstick_new_req(struct memstick_host *host);
int memstick_set_rw_addr(struct memstick_dev *card);
static inline void *memstick_priv(struct memstick_host *host)
{
return (void *)host->private;
}
static inline void *memstick_get_drvdata(struct memstick_dev *card)
{
return dev_get_drvdata(&card->dev);
}
static inline void memstick_set_drvdata(struct memstick_dev *card, void *data)
{
dev_set_drvdata(&card->dev, data);
}
#endif
Annotation
- Immediate include surface: `linux/workqueue.h`, `linux/scatterlist.h`, `linux/device.h`.
- Detected declarations: `struct ms_status_register`, `struct ms_id_register`, `struct ms_param_register`, `struct ms_extra_data_register`, `struct ms_register`, `struct mspro_param_register`, `struct mspro_io_info_register`, `struct mspro_io_func_register`, `struct mspro_io_cmd_register`, `struct mspro_register`.
- Atlas domain: Core OS / Core Kernel Interface.
- Implementation status: pattern 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.