Lines Matching defs:ks_update
89 int (*ks_update)(struct kstat *, int); /* dynamic update */
159 #define KSTAT_UPDATE(k, rw) (*(k)->ks_update)((k), (rw))
319 * The kstat mechanism allows for an optional ks_update function to update
323 * ks_update function which updates the kstat's data section on demand.
324 * To take advantage of this feature, simply set the ks_update field before
327 * The ks_update function, if supplied, must have the following structure:
340 * The ks_update return codes are: 0 for success, EACCES if you don't allow
343 * In general, the ks_update function may need to refer to provider-private
348 * All variable-size kstats MUST supply a ks_update routine, which computes
352 * No kstat locking should be done inside the ks_update routine. The caller
748 * the ks_data field at this time. The provider may also set the ks_update,
779 * (i.e., calls the ks_update routine), marks the kstat as dormant, and
780 * sets the ks_lock, ks_update, ks_private, and ks_snapshot fields back
789 * initialize the native data (i.e., ks_update is called with KSTAT_WRITE),