static void scheduled_vperfctr_free(struct work_struct *work)
{
	struct vperfctr *perfctr =
		container_of(work, struct vperfctr, work);
	// printk ("vperfctr being released from %s\n", __FUNCTION__);
	vperfctr_free((struct vperfctr*)perfctr);
}
Beispiel #2
0
static void put_vperfctr(struct vperfctr *perfctr)
{
		vperfctr_free(perfctr);
}
static void put_vperfctr(struct vperfctr *perfctr)
{
	// returns true if the value after decrement is zero
	if (atomic_dec_and_test(&perfctr->count))
		vperfctr_free(perfctr);
}
Beispiel #4
0
static void scheduled_vperfctr_free(void *data)
{
	vperfctr_free((struct vperfctr*)data);
}
Beispiel #5
0
static void scheduled_vperfctr_free(struct work_struct *work)
{
	struct vperfctr *perfctr = container_of(work, struct vperfctr, work);
	vperfctr_free(perfctr);
}
Beispiel #6
0
static void put_vperfctr(struct vperfctr *perfctr)
{
	if (atomic_dec_and_test(&perfctr->count))
		vperfctr_free(perfctr);
}