/src/sys/kern/ |
sys_memfd.c | 98 struct memfd *mfd; local in function:sys_memfd_create 105 mfd = kmem_zalloc(sizeof(*mfd), KM_SLEEP); 106 mfd->mfd_size = 0; 107 mfd->mfd_uobj = uao_create(INT64_MAX - PAGE_SIZE, 0); /* same as tmpfs */ 110 strcpy(mfd->mfd_name, memfd_prefix); 112 &mfd->mfd_name[sizeof(memfd_prefix) - 1], 113 sizeof(mfd->mfd_name) - sizeof(memfd_prefix), NULL); 117 getnanotime(&mfd->mfd_btime); 120 mfd->mfd_seals |= F_SEAL_SEAL 148 struct memfd *mfd = fp->f_memfd; local in function:memfd_read 185 struct memfd *mfd = fp->f_memfd; local in function:memfd_write 241 struct memfd *mfd = fp->f_memfd; local in function:memfd_fcntl 297 struct memfd *mfd = fp->f_memfd; local in function:memfd_stat 323 struct memfd *mfd = fp->f_memfd; local in function:memfd_close 337 struct memfd *mfd = fp->f_memfd; local in function:memfd_mmap 415 struct memfd *mfd = fp->f_memfd; local in function:memfd_truncate_locked [all...] |
/src/sys/arch/arm/imx/ |
imx51_ccm.c | 494 uint32_t mfd; local in function:imx51_get_pll_freq 518 mfd = dp_mfd; 551 freq /= (mfd + 1); 556 freq = (int64_t)ref * mfi + (int64_t)ref * mfn / (mfd + 1); 567 printf("mfd: %3d ", mfd);
|
/src/usr.bin/fstat/ |
misc.c | 282 struct memfd mfd; local in function:p_memfd 284 if (!KVM_READ(f->f_data, &mfd, sizeof(mfd))) { 288 (void)printf("* %s, seals=", mfd.mfd_name); 289 if (mfd.mfd_seals == 0) 292 seal_yet = p_memfd_seal(seal_yet, mfd.mfd_seals, F_SEAL_SEAL, "F_SEAL_SEAL"); 293 seal_yet = p_memfd_seal(seal_yet, mfd.mfd_seals, F_SEAL_SHRINK, "F_SEAL_SHRINK"); 294 seal_yet = p_memfd_seal(seal_yet, mfd.mfd_seals, F_SEAL_GROW, "F_SEAL_GROW"); 295 seal_yet = p_memfd_seal(seal_yet, mfd.mfd_seals, F_SEAL_WRITE, "F_SEAL_WRITE"); 296 seal_yet = p_memfd_seal(seal_yet, mfd.mfd_seals, F_SEAL_FUTURE_WRITE, "F_SEAL_FUTURE_WRITE") [all...] |
/src/sbin/restore/ |
dirs.c | 149 int i, dfd, mfd; local in function:extractdirs 174 if ((mfd = mkstemp(modefile)) == -1) 177 mf = fdopen(mfd, "w");
|
/src/usr.sbin/moused/ |
moused.c | 350 int mfd; /* mouse file descriptor */ member in struct:rodentparam 370 .mfd = -1, 776 if ((rodent.mfd = open(rodent.portname, O_RDWR | O_NONBLOCK, 0)) 781 close(rodent.mfd); 782 rodent.mfd = -1; 806 if (rodent.mfd == -1) { 821 if (rodent.mfd != -1) 822 close(rodent.mfd); 825 rodent.mfd = rodent.cfd = -1; 896 set[0].fd = rodent.mfd; [all...] |