cond_init() returns 0 if successful. When any of the following conditions is detected, cond_init() fails and returns the corresponding value.
EFAULT
cv points to an illegal address.
EINVAL
type is not a recognized type.