[Question] Is there a way to mmap the kernel address to the user-space
Hi there, I want to ask you a question, as shown in the code.I would be grateful if anyone could answer.
int
nouveau_bo_map(struct nouveau_bo *nvbo)
{
int ret;
ret = ttm_bo_reserve(&nvbo->bo, false, false, NULL);
if (ret)
return ret;
/* I think the bo is mapped to the kernel address , is there a way to map it to the user-space? */
ret = ttm_bo_kmap(&nvbo->bo, 0, nvbo->bo.resource->num_pages, &nvbo->kmap);
ttm_bo_unreserve(&nvbo->bo);
return ret;
}