Lines Matching refs:priv
44 if (handle->priv != NULL) in get_priv_data()
45 return handle->priv; in get_priv_data()
47 handle->priv = malloc(sizeof(struct priv_data)); in get_priv_data()
48 if (handle->priv == NULL) in get_priv_data()
51 ((struct priv_data *)handle->priv)->procnetdev = NULL; in get_priv_data()
52 ((struct priv_data *)handle->priv)->sysfsvbd = NULL; in get_priv_data()
54 return handle->priv; in get_priv_data()
74 struct priv_data *priv = get_priv_data(handle); in xenstat_uninit_networks() local
75 if (priv != NULL && priv->procnetdev != NULL) in xenstat_uninit_networks()
76 fclose(priv->procnetdev); in xenstat_uninit_networks()
94 struct priv_data *priv = get_priv_data(handle); in xenstat_uninit_vbds() local
95 if (priv != NULL && priv->sysfsvbd != NULL) in xenstat_uninit_vbds()
96 closedir(priv->sysfsvbd); in xenstat_uninit_vbds()