extern struct xarray psp_devs;
extern struct mutex psp_devs_lock;
-void psp_dev_destroy(struct psp_dev *psd);
+void psp_dev_free(struct psp_dev *psd);
int psp_dev_check_access(struct psp_dev *psd, struct net *net);
void psp_nl_notify_dev(struct psp_dev *psd, u32 cmd);
static inline void psp_dev_put(struct psp_dev *psd)
{
if (refcount_dec_and_test(&psd->refcnt))
- psp_dev_destroy(psd);
+ psp_dev_free(psd);
}
static inline bool psp_dev_is_registered(struct psp_dev *psd)
}
EXPORT_SYMBOL(psp_dev_create);
-void psp_dev_destroy(struct psp_dev *psd)
+void psp_dev_free(struct psp_dev *psd)
{
mutex_lock(&psp_devs_lock);
xa_erase(&psp_devs, psd->id);
psp_nl_notify_dev(psd, PSP_CMD_DEV_DEL_NTF);
- /* Wait until psp_dev_destroy() to call xa_erase() to prevent a
+ /* Wait until psp_dev_free() to call xa_erase() to prevent a
* different psd from being added to the xarray with this id, while
* there are still references to this psd being held.
*/