Lines Matching defs:context

321  * @txn_security_ctx:     require sender's security context
479 * @context: binder_context for this proc
512 struct binder_context *context;
594 * descriptors need to be allocated in the context of the
1240 node == node->proc->context->binder_context_mgr_node &&
1480 struct binder_context *context = proc->context;
1507 new_ref->data.desc = (node == context->binder_context_mgr_node) ? 0 : 1;
2764 * are only accessed in local context.
2808 * to target context.
2914 * will be applied later (in target process context), so we just skip
3202 struct binder_context *context = proc->context;
3221 strscpy(e->context_name, proc->context->name, BINDERFS_MAX_NAME);
3304 mutex_lock(&context->context_mgr_node_lock);
3305 target_node = context->binder_context_mgr_node;
3312 mutex_unlock(&context->context_mgr_node_lock);
3314 binder_user_error("%d:%d got transaction to context manager from process owning it\n",
4039 struct binder_context *context = proc->context;
4074 mutex_lock(&context->context_mgr_node_lock);
4075 ctx_mgr_node = context->binder_context_mgr_node;
4078 binder_user_error("%d:%d context manager tried to acquire desc 0\n",
4080 mutex_unlock(&context->context_mgr_node_lock);
4087 mutex_unlock(&context->context_mgr_node_lock);
4558 * Now that we are in the context of the transaction target
5160 device = container_of(proc->context, struct binder_device, context);
5162 kfree(proc->context->name);
5369 struct binder_context *context = proc->context;
5373 mutex_lock(&context->context_mgr_node_lock);
5374 if (context->binder_context_mgr_node) {
5382 if (uid_valid(context->binder_context_mgr_uid)) {
5383 if (!uid_eq(context->binder_context_mgr_uid, curr_euid)) {
5387 context->binder_context_mgr_uid));
5392 context->binder_context_mgr_uid = curr_euid;
5404 context->binder_context_mgr_node = new_node;
5408 mutex_unlock(&context->context_mgr_node_lock);
5416 struct binder_context *context = proc->context;
5426 /* This ioctl may only be used by the context manager */
5427 mutex_lock(&context->context_mgr_node_lock);
5428 if (!context->binder_context_mgr_node ||
5429 context->binder_context_mgr_node->proc != proc) {
5430 mutex_unlock(&context->context_mgr_node_lock);
5433 mutex_unlock(&context->context_mgr_node_lock);
5769 proc->context = &binder_dev->context;
5945 struct binder_context *context = proc->context;
5953 mutex_lock(&context->context_mgr_node_lock);
5954 if (context->binder_context_mgr_node &&
5955 context->binder_context_mgr_node->proc == proc) {
5959 context->binder_context_mgr_node = NULL;
5961 mutex_unlock(&context->context_mgr_node_lock);
6244 seq_printf(m, "context %s\n", proc->context->name);
6408 seq_printf(m, "context %s\n", proc->context->name);
6557 "%d: %s from %d:%d to %d:%d context %s node %d handle %d size %d:%d ret %d/%d l=%d",
6718 seq_printf(m, "%s\t", proc->context->name);
6766 binder_device->context.binder_context_mgr_uid = INVALID_UID;
6767 binder_device->context.name = name;
6768 mutex_init(&binder_device->context.context_mgr_node_lock);