* Get the current property value. It may have changed by the time this * function returns, so it is NOT safe to follow up with * dsl_prop_register() and assume that the value has not changed in * between. * * Return 0 on success, ENOENT if ddname is invalid. */
| 340 | * Return 0 on success, ENOENT if ddname is invalid. |
| 341 | */ |
| 342 | int |
| 343 | dsl_prop_get_integer(const char *ddname, const char *propname, |
| 344 | uint64_t *valuep, char *setpoint) |
| 345 | { |
| 346 | return (dsl_prop_get(ddname, propname, 8, 1, valuep, setpoint)); |
| 347 | } |
| 348 | |
| 349 | int |
| 350 | dsl_prop_get_int_ds(dsl_dataset_t *ds, const char *propname, |