__u32 pin_offset;
};
-struct nvmap_client *nvmap_create_client(struct nvmap_device *dev);
+struct nvmap_client *nvmap_create_client(struct nvmap_device *dev,
+ const char *name);
struct nvmap_handle_ref *nvmap_alloc(struct nvmap_client *client, size_t size,
size_t align, unsigned int flags);
return NULL;
}
-struct nvmap_client *nvmap_create_client(struct nvmap_device *dev)
+struct nvmap_client *nvmap_create_client(struct nvmap_device *dev,
+ const char *name)
{
struct nvmap_client *client;
int i;
if (!client)
return NULL;
+ client->name = name;
client->super = true;
client->dev = dev;
/* TODO: allocate unique IOVMM client for each nvmap client */
return ret;
BUG_ON(dev != nvmap_dev);
- priv = nvmap_create_client(dev);
+ priv = nvmap_create_client(dev, "user");
if (!priv)
return -ENOMEM;
{
char task_comm[sizeof(client->task->comm)];
get_task_comm(task_comm, client->task);
- seq_printf(s, "%16s %8u", task_comm, client->task->pid);
+ seq_printf(s, "%8s %16s %8u", client->name, task_comm,
+ client->task->pid);
}
static void allocations_stringify(struct nvmap_client *client,