Use put_user(val, uaddr). val must be of type unsigned char (or casted
to it). It will return 0 on success or -EFAULT on fault. verify_area()
is normally not needed in 2.4, unless you are copying many values to
user space and only want to do the priviledge check once on the whole range.
--Brian Gerst
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/