Lines Matching refs:dnp

116 static void             devfs_consider_time_update(devnode_t *dnp, uint32_t just_changed_flags);
119 void dn_times_locked(devnode_t * dnp, struct timeval *t1, struct timeval *t2, st…
120 void dn_times_now(devnode_t *dnp, uint32_t just_changed_flags);
121 void dn_mark_for_delayed_times_update(devnode_t *dnp, uint32_t just_changed_flag…
124 dn_times_locked(devnode_t * dnp, struct timeval *t1, struct timeval *t2, struct timeval *t3, uint32… in dn_times_locked() argument
129 dnp->dn_atime.tv_sec = t1->tv_sec; in dn_times_locked()
130 dnp->dn_atime.tv_nsec = t1->tv_usec * 1000; in dn_times_locked()
131 dnp->dn_access = 0; in dn_times_locked()
132 } else if (dnp->dn_access) { in dn_times_locked()
133 dnp->dn_atime.tv_sec = MIN(t1->tv_sec, dnp->dn_atime.tv_sec + DEVFS_LAZY_UPDATE_SECONDS); in dn_times_locked()
134 dnp->dn_atime.tv_nsec = t1->tv_usec * 1000; in dn_times_locked()
135 dnp->dn_access = 0; in dn_times_locked()
139 dnp->dn_mtime.tv_sec = t2->tv_sec; in dn_times_locked()
140 dnp->dn_mtime.tv_nsec = t2->tv_usec * 1000; in dn_times_locked()
141 dnp->dn_update = 0; in dn_times_locked()
142 } else if (dnp->dn_update) { in dn_times_locked()
143 dnp->dn_mtime.tv_sec = MIN(t2->tv_sec, dnp->dn_mtime.tv_sec + DEVFS_LAZY_UPDATE_SECONDS); in dn_times_locked()
144 dnp->dn_mtime.tv_nsec = t2->tv_usec * 1000; in dn_times_locked()
145 dnp->dn_update = 0; in dn_times_locked()
149 dnp->dn_ctime.tv_sec = t3->tv_sec; in dn_times_locked()
150 dnp->dn_ctime.tv_nsec = t3->tv_usec * 1000; in dn_times_locked()
151 dnp->dn_change = 0; in dn_times_locked()
152 } else if (dnp->dn_change) { in dn_times_locked()
153 dnp->dn_ctime.tv_sec = MIN(t3->tv_sec, dnp->dn_ctime.tv_sec + DEVFS_LAZY_UPDATE_SECONDS); in dn_times_locked()
154 dnp->dn_ctime.tv_nsec = t3->tv_usec * 1000; in dn_times_locked()
155 dnp->dn_change = 0; in dn_times_locked()
160 dn_mark_for_delayed_times_update(devnode_t *dnp, uint32_t just_changed_flags) in dn_mark_for_delayed_times_update() argument
163 dnp->dn_change = 1; in dn_mark_for_delayed_times_update()
166 dnp->dn_access = 1; in dn_mark_for_delayed_times_update()
169 dnp->dn_update = 1; in dn_mark_for_delayed_times_update()
177 dn_times_now(devnode_t * dnp, uint32_t just_changed_flags) in dn_times_now() argument
183 dn_times_locked(dnp, &now, &now, &now, just_changed_flags); in dn_times_now()
664 devnode_t * dnp; in devfs_close() local
668 dnp = VTODN(vp); in devfs_close()
669 if (dnp) { in devfs_close()
670 dn_times_now(dnp, 0); in devfs_close()
686 devnode_t * dnp; in devfsspec_close() local
690 dnp = VTODN(vp); in devfsspec_close()
691 if (dnp) { in devfsspec_close()
692 dn_times_now(dnp, 0); in devfsspec_close()
718 devfs_consider_time_update(devnode_t *dnp, uint32_t just_changed_flags) in devfs_consider_time_update() argument
726 if (dnp->dn_change || (just_changed_flags & DEVFS_UPDATE_CHANGE)) { in devfs_consider_time_update()
727 if (devfs_update_needed(now_s, dnp->dn_ctime.tv_sec)) { in devfs_consider_time_update()
728 dn_times_now(dnp, just_changed_flags); in devfs_consider_time_update()
732 if (dnp->dn_access || (just_changed_flags & DEVFS_UPDATE_ACCESS)) { in devfs_consider_time_update()
733 if (devfs_update_needed(now_s, dnp->dn_atime.tv_sec)) { in devfs_consider_time_update()
734 dn_times_now(dnp, just_changed_flags); in devfs_consider_time_update()
738 if (dnp->dn_update || (just_changed_flags & DEVFS_UPDATE_MOD)) { in devfs_consider_time_update()
739 if (devfs_update_needed(now_s, dnp->dn_mtime.tv_sec)) { in devfs_consider_time_update()
740 dn_times_now(dnp, just_changed_flags); in devfs_consider_time_update()
746 dn_mark_for_delayed_times_update(dnp, just_changed_flags); in devfs_consider_time_update()
760 devnode_t * dnp = VTODN(ap->a_vp); in devfsspec_read() local
762 devfs_consider_time_update(dnp, DEVFS_UPDATE_ACCESS); in devfsspec_read()
776 devnode_t * dnp = VTODN(ap->a_vp); in devfsspec_write() local
778 devfs_consider_time_update(dnp, DEVFS_UPDATE_CHANGE | DEVFS_UPDATE_MOD); in devfsspec_write()
1463 devnode_t * dnp; in devfs_reclaim() local
1467 dnp = VTODN(vp); in devfs_reclaim()
1469 if (dnp) { in devfs_reclaim()
1471 dnp->dn_vn = NULL; in devfs_reclaim()
1475 devfs_rele_node(dnp); in devfs_reclaim()
1543 devnode_t *dnp = VTODN(vp); in devfs_inactive() local
1549 if (dnp->dn_clone != NULL) { in devfs_inactive()