drivers/infiniband/core/frmr_pools.h
Source file repositories/reference/linux-study-clean/drivers/infiniband/core/frmr_pools.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/infiniband/core/frmr_pools.h- Extension
.h- Size
- 1509 bytes
- Lines
- 64
- Domain
- Driver Families
- Bucket
- drivers/infiniband
- 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
rdma/frmr_pools.hlinux/rbtree_types.hlinux/spinlock_types.hlinux/types.hasm/page.hlinux/workqueue.h
Detected Declarations
struct frmr_handles_pagestruct frmr_queuestruct ib_frmr_poolstruct ib_frmr_pools
Annotated Snippet
struct frmr_handles_page {
struct list_head list;
u32 handles[NUM_HANDLES_PER_PAGE];
};
/* FRMR queue holds a list of frmr_handles_page.
* num_pages: number of pages in the queue.
* ci: current index in the handles array across all pages.
*/
struct frmr_queue {
struct list_head pages_list;
u32 num_pages;
unsigned long ci;
};
struct ib_frmr_pool {
struct rb_node node;
struct ib_frmr_key key; /* Pool key */
/* Protect access to the queue */
spinlock_t lock;
struct frmr_queue queue;
struct frmr_queue inactive_queue;
struct delayed_work aging_work;
struct ib_device *device;
u32 max_in_use;
u32 in_use;
u32 pinned_handles;
};
struct ib_frmr_pools {
struct rb_root rb_root;
rwlock_t rb_lock;
const struct ib_frmr_pool_ops *pool_ops;
struct workqueue_struct *aging_wq;
u32 aging_period_sec;
};
int ib_frmr_pools_set_pinned(struct ib_device *device, struct ib_frmr_key *key,
u32 pinned_handles);
int ib_frmr_pools_set_aging_period(struct ib_device *device, u32 period_sec);
#endif /* RDMA_CORE_FRMR_POOLS_H */
Annotation
- Immediate include surface: `rdma/frmr_pools.h`, `linux/rbtree_types.h`, `linux/spinlock_types.h`, `linux/types.h`, `asm/page.h`, `linux/workqueue.h`.
- Detected declarations: `struct frmr_handles_page`, `struct frmr_queue`, `struct ib_frmr_pool`, `struct ib_frmr_pools`.
- Atlas domain: Driver Families / drivers/infiniband.
- 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.