It will return zero on success or a non-zero error code, especially DBPLUS_ERR_WLOCKED, on failure.
dbplus_getlock() will request a write lock on the specified tuple. It will return zero on success or a non-zero error code, especially DBPLUS_ERR_WLOCKED, on failure.