Skip to content

Commit 7d5b83c

Browse files
committed
Rename irq_get_id to irq_get_handle to align with spec
Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
1 parent 38b54b4 commit 7d5b83c

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/include/libocxl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ ocxl_err ocxl_afu_attach(ocxl_afu_h afu);
167167
/* irq.c */
168168
/* AFU IRQ functions */
169169
ocxl_err ocxl_afu_irq_alloc(ocxl_afu_h afu, void *info, ocxl_irq_h * irq_handle);
170-
uint64_t ocxl_afu_irq_get_id(ocxl_afu_h afu, ocxl_irq_h irq);
170+
uint64_t ocxl_afu_irq_get_handle(ocxl_afu_h afu, ocxl_irq_h irq);
171171
int ocxl_afu_get_event_fd(ocxl_afu_h afu);
172172
int ocxl_afu_event_check_versioned(ocxl_afu_h afu, int timeout, ocxl_event *events, uint16_t event_count,
173173
uint16_t event_api_version);

src/irq.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,15 @@ ocxl_err ocxl_afu_irq_alloc(ocxl_afu_h afu, void *info, ocxl_irq_h * irq)
185185
}
186186

187187
/**
188-
* Get the 64 bit IRQ ID for an IRQ
188+
* Get the 64 bit IRQ handle for an IRQ
189189
*
190-
* This ID can be written to the AFU to allow the AFU to trigger the IRQ.
190+
* This handle can be written to the AFU to allow the AFU to trigger the IRQ.
191191
*
192192
* @param afu the AFU the IRQ belongs to
193193
* @param irq the IRQ to get the handle of
194194
* @return the handle, or 0 if the handle is invalid
195195
*/
196-
uint64_t ocxl_afu_irq_get_id(ocxl_afu_h afu, ocxl_irq_h irq)
196+
uint64_t ocxl_afu_irq_get_handle(ocxl_afu_h afu, ocxl_irq_h irq)
197197
{
198198
ocxl_afu *my_afu = (ocxl_afu *) afu;
199199

symver.map

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ LIBOCXL_0 {
1919
ocxl_afu_open_specific;
2020
ocxl_afu_attach;
2121
ocxl_afu_irq_alloc;
22-
ocxl_afu_irq_get_id;
22+
ocxl_afu_irq_get_handle;
2323
ocxl_afu_get_event_fd;
2424
ocxl_afu_event_check;
2525
ocxl_afu_event_check_versioned;

0 commit comments

Comments
 (0)