static struct agp_memory *agp_allocate_memory_wrap(size_t pg_count, u32 type) { struct agp_memory *memory; memory = agp_allocate_memory(pg_count, type); if (memory == NULL) return NULL; agp_insert_into_pool(memory); return memory; }
static agp_memory *agp_allocate_memory_wrap(size_t pg_count, u32 type) { agp_memory *memory; memory = agp_allocate_memory(pg_count, type); printk(KERN_DEBUG "memory : %p\n", memory); if (memory == NULL) { return NULL; } agp_insert_into_pool(memory); return memory; }
/** Calls agp_allocate_memory() */ DRM_AGP_MEM *drm_agp_allocate_memory(struct agp_bridge_data *bridge, size_t pages, u32 type) { return agp_allocate_memory(bridge, pages, type); }