STRUCT CORESIGHT_OPS_SINK(9)
π struct coresight_ops_sink β Kernel API Manual π
β¨ NAME β¨
struct coresight_ops_sink β basic operations for a sink. These are the operations available for sinks, bestie. π«Ά
π¦ SYNOPSIS π¦
Hereβs the struct in all its exact, character-for-character glory β no cap, donβt touch the punctuation:
struct coresight_ops_sink {
int (*enable)(struct coresight_device *csdev, enum cs_mode mode,
struct coresight_path *path);
int (*disable)(struct coresight_device *csdev);
void *(*alloc_buffer)(struct coresight_device *csdev, struct
perf_event *event, void **pages, int nr_pages, bool overwrite);
void (*free_buffer)(void *config);
unsigned long (*update_buffer)(struct coresight_device *csdev,
struct perf_output_handle *handle, void *sink_config);
};
π Members π
Okay so the members are giving βsmall struct, big responsibilitiesβ:
enableβ enables the sink. Slay. πdisableβ disables the sink. Also slay. β¨alloc_bufferβ initialises perf's ring buffer for trace collection. πfree_bufferβ release memory allocated inget_config. Yes, it literally saysget_config. πupdate_bufferβ update buffer pointers after a trace session. πΈ
π SEE ALSO π
Go peek at these too, iykyk:
- Kernel file:
./include/linux/coresight.h - union
coresight_dev_subtype(9) struct coresight_platform_data(9)struct csdev_access(9)struct coresight_desc(9)struct coresight_connection(9)struct coresight_sysfs_link(9)struct coresight_device(9)struct coresight_path(9)struct coresight_ops_link(9)struct coresight_ops_source(9)struct coresight_ops_helper(9)struct coresight_ops_panic(9)
Thatβs the whole vibe. This page is from ./include/linux, dated October 2026, and itβs the struct coresight_ops_sink(9) entry in the Kernel API Manual β mwah ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms