mdb_writevar() Function

ssize_t mdb_writevar(const void *buf, const char *name);

The mdb_writevar() function is identical to the mdb_vwrite() function. However, the mdb_writevar() function obtains the virtual address at which to begin writing and the number of bytes to write from the value and size of the symbol that is specified by the name argument. If the specified name symbol is not found, mdb_writevar() returns a value of -1. Otherwise, the number of bytes that are written successfully is returned on success or -1 on error.