/src/tests/compat/linux/ |
h_inotify_watch_change.c | 44 int fd, wd, targetfd; local in function:_start 51 RS(wd = syscall(LINUX_SYS_inotify_add_watch, fd, (register_t)"test", 63 RS(wd = syscall(LINUX_SYS_inotify_add_watch, fd, (register_t)"test", 75 RS(wd = syscall(LINUX_SYS_inotify_add_watch, fd, (register_t)"test",
|
h_inotify_single_file.c | 49 int fd, wd, targetfd, buf; local in function:_start 55 RS(wd = syscall(LINUX_SYS_inotify_add_watch, fd, (register_t)"test", 72 REQUIRE(events[i].wd == wd && events[i].cookie == 0
|
h_inotify_directory.c | 65 int fd, wd, targetfd; local in function:_start 72 RS(wd = syscall(LINUX_SYS_inotify_add_watch, fd, (register_t)"test", 90 REQUIRE(cur_ie->wd == wd);
|
/src/sys/arch/mmeye/stand/boot/ |
wd.c | 1 /* $NetBSD: wd.c,v 1.5 2019/01/08 19:36:57 jdolecek Exp $ */ 42 static int wd_get_params(struct wd_softc *wd); 43 static int wdgetdisklabel(struct wd_softc *wd); 44 static void wdgetdefaultlabel(struct wd_softc *wd, struct disklabel *lp); 50 wd_get_params(struct wd_softc *wd) 55 if ((error = wdc_exec_identify(wd, buf)) != 0) 58 memcpy(&wd->sc_params, buf, sizeof wd->sc_params); 61 if ((wd->sc_params.atap_cmd2_en & ATA_CMD2_LBA48) != 0) 62 wd->sc_flags |= WDF_LBA48 200 struct wd_softc *wd; local in function:wdopen 249 struct wd_softc *wd; local in function:wdstrategy [all...] |
/src/sys/arch/bebox/stand/boot/ |
wd.c | 1 /* $NetBSD: wd.c,v 1.4 2019/01/08 19:41:09 jdolecek Exp $ */ 50 static int wd_get_params(struct wd_softc *wd); 51 static int wdgetdisklabel(struct wd_softc *wd); 52 static void wdgetdefaultlabel(struct wd_softc *wd, struct disklabel *lp); 62 wd_get_params(struct wd_softc *wd) 67 if ((error = wdc_exec_identify(wd, buf)) != 0) 70 wd->sc_params = *(struct ataparams *)buf; 73 if ((wd->sc_params.atap_cmd2_en & ATA_CMD2_LBA48) != 0) 74 wd->sc_flags |= WDF_LBA48; 77 if ((wd->sc_params.atap_capabilities1 & WDC_CAP_LBA) != 0 236 struct wd_softc *wd; local in function:wdopen 288 struct wd_softc *wd; local in function:wdstrategy [all...] |
/src/sys/arch/cobalt/stand/boot/ |
wd.c | 1 /* $NetBSD: wd.c,v 1.18 2019/01/08 19:41:09 jdolecek Exp $ */ 44 static int wd_get_params(struct wd_softc *wd); 45 static int wdgetdisklabel(struct wd_softc *wd); 46 static void wdgetdefaultlabel(struct wd_softc *wd, struct disklabel *lp); 52 wd_get_params(struct wd_softc *wd) 58 if ((error = wdc_exec_identify(wd, buf)) != 0) 61 wd->sc_params = *params; 64 if ((wd->sc_params.atap_cmd2_en & ATA_CMD2_LBA48) != 0) 65 wd->sc_flags |= WDF_LBA48; 68 if ((wd->sc_params.atap_capabilities1 & WDC_CAP_LBA) != 0 224 struct wd_softc *wd; local in function:wdopen 273 struct wd_softc *wd; local in function:wdstrategy [all...] |
/src/usr.bin/btkey/ |
btkey.c | 57 bool cf, cd, lf, ld, rf, rd, wf, wd, nk; local in function:main 62 cf = cd = lf = ld = rf = rd = wf = wd = nk = false; 125 wd = true; 139 if ((lf || ld) && (rf || rd || wf || wd || cf || cd || nk)) 142 if (((rf && rd) || (rf && nk) || (rd && nk)) && (wf || wd)) 182 if (wf || wd || cf || cd) 192 if (wd) {
|
/src/usr.bin/rwho/ |
rwho.c | 82 struct whod wd; local in function:main 137 cc = read(f, &wd, sizeof (wd)); 143 if (DOWN(wd, now)) { 148 we = wd.wd_we; 166 (void)strcpy(mp->myhost, wd.wd_hostname);
|
/src/sys/dev/mca/ |
ed_mca.c | 294 struct ed_softc *wd; local in function:edmcaopen 298 wd = device_lookup_private(&ed_cd, DISKUNIT(dev)); 299 if (wd == NULL || (wd->sc_flags & EDF_INIT) == 0) 304 mutex_enter(&wd->sc_dk.dk_openlock); 310 if (wd->sc_dk.dk_nwedges != 0 && part != RAW_PART) { 315 if (wd->sc_dk.dk_openmask != 0) { 320 if ((wd->sc_flags & WDF_LOADED) == 0) { 325 if ((wd->sc_flags & WDF_LOADED) == 0) { 328 wd->sc_flags |= WDF_LOADED 369 struct ed_softc *wd = device_lookup_private(&ed_cd, DISKUNIT(dev)); local in function:edmcaclose 579 struct ed_softc *wd; local in function:edmcasize [all...] |
/src/sys/compat/linux/common/ |
linux_inotify.h | 80 int32_t wd; member in struct:linux_inotify_event
|
linux_inotify.c | 422 int wd, i, error = 0; local in function:linux_sys_inotify_add_watch 465 /* Check to see if we already have a descriptor to wd's file. */ 466 wd = -1; 471 DPRINTF(("%s: wd=%d was closed externally\n", 477 DPRINTF(("%s: wd=%d was replaced " 482 wd = i; 487 if (wd != -1) 492 if (wd == -1) { 494 * If we do not have a descriptor to wd's file, we 508 wd = *retval 671 const int wd = SCARG(uap, wd); local in function:linux_sys_inotify_rm_watch [all...] |
/src/usr.bin/ruptime/ |
ruptime.c | 83 struct whod *wd; local in function:main 147 for (wd = (struct whod *)buf, i = 0; i < 2; ++i) 148 if (wd->wd_loadav[i] > maxloadav) 149 maxloadav = wd->wd_loadav[i]; 152 we = (struct whoent *)(buf + cc); --we >= wd->wd_we;)
|
/src/sys/ufs/ffs/ |
ffs_wapbl.c | 178 struct wapbl_dealloc *wd; local in function:ffs_wapbl_sync_metadata 182 for (wd = fdealloc; wd != NULL; wd = TAILQ_NEXT(wd, wd_entries)) { 188 FFS_DBTOFSB(fs, wd->wd_blkno), wd->wd_len, -1); 208 struct wapbl_dealloc *wd; local in function:ffs_wapbl_abort_sync_metadata 210 for (wd = fdealloc; wd != NULL; wd = TAILQ_NEXT(wd, wd_entries)) [all...] |
/src/usr.sbin/rwhod/ |
rwhod.c | 266 struct whod wd; local in function:handleread 270 cc = recvfrom(s, (char *)&wd, sizeof(struct whod), 0, 288 if (wd.wd_vers != WHODVERSION) 290 if (wd.wd_type != WHODTYPE_STATUS) 296 wd.wd_hostname[sizeof(wd.wd_hostname)-1] = 0; 297 if (!verify(wd.wd_hostname)) { 302 (void)snprintf(path, sizeof(path), "whod.%s", wd.wd_hostname); 318 wd.wd_sendtime = ntohl(wd.wd_sendtime) [all...] |
/src/sys/dev/ata/ |
ld_ataraid.c | 680 struct wd_softc *wd; local in function:ld_ataraid_biodisk 689 wd = device_private(adi->adi_dev); 707 bd->bd_size = (wd->sc_capacity * ld->sc_secsize) - aai->aai_reserved; 712 strnvisx(serial, sizeof(serial), wd->sc_params.atap_serial, 713 sizeof(wd->sc_params.atap_serial), VIS_TRIM|VIS_SAFE|VIS_OCTAL); 714 strnvisx(model, sizeof(model), wd->sc_params.atap_model, 715 sizeof(wd->sc_params.atap_model), VIS_TRIM|VIS_SAFE|VIS_OCTAL); 716 strnvisx(rev, sizeof(rev), wd->sc_params.atap_revision, 717 sizeof(wd->sc_params.atap_revision), VIS_TRIM|VIS_SAFE|VIS_OCTAL);
|
wd.c | 1 /* $NetBSD: wd.c,v 1.474 2025/04/13 14:00:59 jakllsch Exp $ */ 57 __KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.474 2025/04/13 14:00:59 jakllsch Exp $"); 132 CFATTACH_DECL3_NEW(wd, sizeof(struct wd_softc), 309 struct wd_softc *wd = device_private(self); local in function:wdattach 310 struct dk_softc *dksc = &wd->sc_dksc; 321 mutex_init(&wd->sc_lock, MUTEX_DEFAULT, IPL_BIO); 323 SLIST_INIT(&wd->sc_bslist); 324 cv_init(&wd->sc_bslist_cv, "wdbadsect"); 326 wd->atabus = adev->adev_bustype; 327 wd->inflight = 0 547 struct wd_softc *wd = device_private(self); local in function:wddetach 632 struct wd_softc *wd = local in function:wdstrategy 807 struct wd_softc *wd = device_private(dev); local in function:wd_diskstart 879 struct wd_softc *wd = device_private(self); local in function:wdrestart 894 struct wd_softc *wd = device_private(self); local in function:wddone 1056 struct wd_softc *wd = v; local in function:wdbioretry 1073 struct wd_softc *wd = v; local in function:wdbiorequeue 1090 const struct wd_softc * const wd = local in function:wdminphys 1144 struct wd_softc *wd; local in function:wdopen 1183 struct wd_softc *wd = device_private(self); local in function:wd_firstopen 1219 struct wd_softc *wd = device_private(self); local in function:wd_lastclose 1235 struct wd_softc *wd; local in function:wdclose 1289 struct wd_softc *wd = local in function:wdioctl 1506 struct wd_softc *wd = device_private(dev); local in function:wd_discard 1547 struct wd_softc *wd; local in function:wddiscard 1571 struct wd_softc *wd; local in function:wdsize 1595 struct wd_softc *wd; local in function:wddump 1616 struct wd_softc *wd = device_private(dev); local in function:wd_dumpblocks 1992 struct wd_softc *wd = device_private(dev); local in function:wd_shutdown 2282 struct wd_softc *wd; local in function:wddebug [all...] |
/src/sys/dev/ic/ |
vga_raster.c | 636 const struct wsscreen_descr *wd = vc->currenttype; local in function:vga_raster_ioctl 637 const struct videomode *vm = wd->modecookie;
|
/src/sys/dev/pci/ |
voodoofb.c | 1416 uint32_t wd; // CRTC offset local in function:voodoofb_setup_monitor 1426 wd = (vm->hdisplay >> 3) - 1; 1495 mode->vr_crtc[19] = wd; // CRTC offset
|
/src/sys/kern/ |
vfs_wapbl.c | 708 struct wapbl_dealloc *wd; local in function:wapbl_discard 826 while ((wd = TAILQ_FIRST(&wl->wl_dealloclist)) != NULL) 827 wapbl_deallocation_free(wl, wd, true); 2108 struct wapbl_dealloc *wd; local in function:wapbl_print 2110 TAILQ_FOREACH(wd, &wl->wl_dealloclist, wd_entries) { 2112 wd->wd_blkno, 2113 wd->wd_len); 2189 struct wapbl_dealloc *wd; local in function:wapbl_register_deallocation 2220 wd = pool_get(&wapbl_dealloc_pool, PR_WAITOK); 2221 wd->wd_blkno = blk 2655 struct wapbl_dealloc *wd, *lwd; local in function:wapbl_write_revocations [all...] |