Skip to content

Commit 11d1fdd

Browse files
committed
Drop 'afu' from IRQ API function names
Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
1 parent c69db7d commit 11d1fdd

3 files changed

Lines changed: 9 additions & 15 deletions

File tree

src/include/libocxl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ ocxl_err ocxl_afu_attach(ocxl_afu_h afu);
165165

166166
/* irq.c */
167167
/* AFU IRQ functions */
168-
ocxl_err ocxl_afu_irq_alloc(ocxl_afu_h afu, void *info, ocxl_irq_h * irq_handle);
169-
uint64_t ocxl_afu_irq_get_handle(ocxl_afu_h afu, ocxl_irq_h irq);
168+
ocxl_err ocxl_irq_alloc(ocxl_afu_h afu, void *info, ocxl_irq_h * irq_handle);
169+
uint64_t ocxl_irq_get_handle(ocxl_afu_h afu, ocxl_irq_h irq);
170170
int ocxl_afu_get_event_fd(ocxl_afu_h afu);
171-
int ocxl_afu_irq_get_descriptor(ocxl_afu_h afu, ocxl_irq_h irq);
171+
int ocxl_irq_get_descriptor(ocxl_afu_h afu, ocxl_irq_h irq);
172172
int ocxl_afu_get_event_descriptor(ocxl_afu_h afu);
173173
int ocxl_afu_event_check_versioned(ocxl_afu_h afu, int timeout, ocxl_event *events, uint16_t event_count,
174174
uint16_t event_api_version);

src/irq.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static ocxl_err irq_allocate(ocxl_afu * afu, ocxl_irq * irq, void *info)
159159
* @retval OCXL_OK if the IRQs have been allocated
160160
* @retval OCXL_NO_MEM if a memory allocation error occurred
161161
*/
162-
ocxl_err ocxl_afu_irq_alloc(ocxl_afu_h afu, void *info, ocxl_irq_h * irq)
162+
ocxl_err ocxl_irq_alloc(ocxl_afu_h afu, void *info, ocxl_irq_h * irq)
163163
{
164164
ocxl_afu *my_afu = (ocxl_afu *) afu;
165165

@@ -193,7 +193,7 @@ ocxl_err ocxl_afu_irq_alloc(ocxl_afu_h afu, void *info, ocxl_irq_h * irq)
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_handle(ocxl_afu_h afu, ocxl_irq_h irq)
196+
uint64_t ocxl_irq_get_handle(ocxl_afu_h afu, ocxl_irq_h irq)
197197
{
198198
ocxl_afu *my_afu = (ocxl_afu *) afu;
199199

@@ -213,7 +213,7 @@ uint64_t ocxl_afu_irq_get_handle(ocxl_afu_h afu, ocxl_irq_h irq)
213213
* @param irq the IRQ to get the descriptor of
214214
* @return the handle, or -1 if the descriptor is invalid
215215
*/
216-
int ocxl_afu_irq_get_descriptor(ocxl_afu_h afu, ocxl_irq_h irq)
216+
int ocxl_irq_get_descriptor(ocxl_afu_h afu, ocxl_irq_h irq)
217217
{
218218
ocxl_afu *my_afu = (ocxl_afu *) afu;
219219

@@ -228,13 +228,7 @@ int ocxl_afu_irq_get_descriptor(ocxl_afu_h afu, ocxl_irq_h irq)
228228
/**
229229
* Get a descriptor that will trigger a poll when an AFU event occurs
230230
*
231-
<<<<<<< HEAD
232-
* When triggered, call ocxl_read_afu_event() to extract the event information
233-
=======
234231
* When triggered, call ocxl_afu_event_check() to extract the event information.
235-
*
236-
* @see ocxl_afu_event_check()
237-
>>>>>>> 4339b2e... Make ocxl_read_afu_event internal
238232
*
239233
* @pre the AFU has been opened
240234
* @see ocxl_afu_event_check()

symver.map

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ LIBOCXL_0 {
1818
ocxl_afu_open_from_dev;
1919
ocxl_afu_open_specific;
2020
ocxl_afu_attach;
21-
ocxl_afu_irq_alloc;
22-
ocxl_afu_irq_get_handle;
21+
ocxl_irq_alloc;
22+
ocxl_irq_get_handle;
2323
ocxl_afu_get_event_fd;
24-
ocxl_afu_irq_get_descriptor;
24+
ocxl_irq_get_descriptor;
2525
ocxl_afu_get_event_descriptor;
2626
ocxl_afu_event_check_versioned;
2727
ocxl_afu_set_ppc64_amr;

0 commit comments

Comments
 (0)