/* Allocate a Buffer using reconciled attribute list and the
* created NvSciBufObj will be associated with the module to
* which reconciledAttrlist belongs to.
*/
err = NvSciBufAttrListObjAlloc(reconciledAttrlist,
&nvscibufobj);
if (err != NvSciError_Success) {
goto fail;
}
/* ..... */
/* Get the associated reconciled attrlist of the object. */
err = NvSciBufObjGetAttrList(nvscibufobj,
&objReconciledAttrList);
if (err != NvSciError_Success) {
goto fail;
}
/* ..... */
err = NvSciBufObjGetCpuPtr(nvscibufobj, &va_ptr);
if (err != NvSciError_Success) {
goto fail;
}
/* ..... */
NvSciBufAttrListFree(objReconciledAttrList);
NvSciBufObjFree(nvscibufobj);