[openib-general] Re: [PATCH/RFC] change ibv_get_devices() to ibv_get_device_list()

Michael S. Tsirkin mst at mellanox.co.il
Sat Dec 10 11:17:43 PST 2005


Quoting r. Roland Dreier <rdreier at cisco.com>:
> Subject: [PATCH/RFC] change ibv_get_devices() to ibv_get_device_list()
> 
> This patch converts the ibv_get_devices() API to a better
> ibv_get_device_list().  The old API was bad because it exposed the
> dlist data structure exposed by libsysfs, which was not thread-safe
> and was just plain overly complex for what it was used for.
> 
> In addition, I've converted over all the in-tree users of
> ibv_get_devices() that I could find -- DAPL, libehca, libibcm,
> librdmacm and mvapich.
> 
> I'm planning to commit this early next week; any objections, comments,
> or suggestions before I do so?
> 
> Thanks,
>   Roland

To make hotplug feasible, we need to document requirements that
1. users call free_device_list after opening relevant devices
2. no user opens a device after calling free_device_list

-- 
MST



More information about the general mailing list