gpu: nvgpu: init: SWUD documentation

Add doxygen documentation for nvgpu.common.init

JIRA NVGPU-2385

Change-Id: Id305c3ba873431576c93909c959173afb4edb932
Signed-off-by: Philip Elcan <pelcan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2156460
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Philip Elcan
2019-07-18 13:59:21 -04:00
committed by mobile promotions
parent b0ad7c0ad2
commit 6fa3e7f418
4 changed files with 126 additions and 18 deletions

View File

@@ -664,14 +664,6 @@ static void gk20a_free_cb(struct nvgpu_ref *refcount)
}
}
/**
* nvgpu_get() - Increment ref count on driver
*
* @g The driver to increment
* This will fail if the driver is in the process of being released. In that
* case it will return NULL. Otherwise a pointer to the driver passed in will
* be returned.
*/
struct gk20a * __must_check nvgpu_get(struct gk20a *g)
{
int success;
@@ -691,14 +683,6 @@ struct gk20a * __must_check nvgpu_get(struct gk20a *g)
return (success != 0) ? g : NULL;
}
/**
* nvgpu_put() - Decrement ref count on driver
*
* @g - The driver to decrement
*
* Decrement the driver ref-count. If neccesary also free the underlying driver
* memory
*/
void nvgpu_put(struct gk20a *g)
{
/*