• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/xnu-2782.1.97/iokit/Kernel/

Lines Matching defs:ctx

4075     HaltRestartApplierContext *     ctx;
4079 ctx = (HaltRestartApplierContext *) context;
4082 notify.powerRef = (void *)(uintptr_t)ctx->Counter;
4084 notify.stateNumber = ctx->PowerState;
4085 notify.stateFlags = ctx->PowerFlags;
4088 ctx->RootDomain->messageClient( ctx->MessageType, object, (void *)&notify );
4103 (ctx->MessageType == kIOMessageSystemWillPowerOff) ? "PowerOff" :
4104 (ctx->MessageType == kIOMessageSystemPagingOff) ? "PagingOff" : "Restart",
4109 ctx->Counter++;
4114 HaltRestartApplierContext ctx;
4118 memset(&ctx, 0, sizeof(ctx));
4119 ctx.RootDomain = this;
4126 ctx.PowerState = OFF_STATE;
4127 ctx.MessageType = kIOMessageSystemWillPowerOff;
4131 ctx.PowerState = RESTART_STATE;
4132 ctx.MessageType = kIOMessageSystemWillRestart;
4136 ctx.PowerState = ON_STATE;
4137 ctx.MessageType = kIOMessageSystemPagingOff;
4149 applyToInterested(gIOPriorityPowerStateInterest, platformHaltRestartApplier, &ctx);
4167 notifySystemShutdown(this, ctx.MessageType);
4174 (ctx.MessageType == kIOMessageSystemWillPowerOff) ? "PowerOff" :
4175 (ctx.MessageType == kIOMessageSystemPagingOff) ? "PagingOff" : "Restart",
8813 vfs_context_t ctx = vfs_context_create(vfs_context_current());
8814 kauth_cred_t cred = vfs_context_ucred(ctx);
8819 S_IRUSR|S_IRGRP|S_IROTH, VNODE_LOOKUP_NOFOLLOW, &vp, ctx) != 0)
8828 vnode_getattr(vp, &va, ctx) || va.va_nlink != 1) {
8834 vnode_setattr(vp, &va, ctx);
8838 UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, cred, (int *) 0, vfs_context_proc(ctx));
8845 if (vp) vnode_close(vp, FWRITE, ctx);
8846 if (ctx) vfs_context_rele(ctx);
8862 vfs_context_t ctx = vfs_context_create(vfs_context_current());
8870 S_IRUSR|S_IRGRP|S_IROTH, VNODE_LOOKUP_NOFOLLOW, &vp, ctx) != 0)
8879 vnode_getattr(vp, &va, ctx) || va.va_nlink != 1) {
8885 vnode_setattr(vp, &va, ctx);
8911 vfs_context_ucred(ctx), (int *) 0,
8912 vfs_context_proc(ctx));
8934 vfs_context_ucred(ctx), (int *) 0,
8935 vfs_context_proc(ctx));
8942 error = vnode_close(vp, FWRITE, ctx);
8945 if (ctx) vfs_context_rele(ctx);
8969 vfs_context_t ctx = NULL;
9010 ctx = vfs_context_create(vfs_context_current());
9012 VNODE_LOOKUP_NOFOLLOW, &vp, ctx) != 0)
9021 vnode_getattr(vp, &va, ctx) || va.va_nlink != 1) {
9029 vfs_context_ucred(ctx), (int *) 0,
9030 vfs_context_proc(ctx));
9053 vfs_context_ucred(ctx), (int *) 0,
9054 vfs_context_proc(ctx));
9075 error = sleepWakeDebugCopyFile(vp, ctx, (char *)tmpBuf, tmpBufSize, stacksOffset,
9081 error = sleepWakeDebugCopyFile(vp, ctx, (char *)tmpBuf, tmpBufSize, logOffset,
9107 if (vp) vnode_close(vp, FREAD, ctx);
9108 if (ctx) vfs_context_rele(ctx);