Lines Matching defs:context
867 node == node->proc->context->binder_context_mgr_node &&
1107 struct binder_context *context = proc->context;
1134 new_ref->data.desc = (node == context->binder_context_mgr_node) ? 0 : 1;
2416 * are only accessed in local context.
2460 * to target context.
2566 * will be applied later (in target process context), so we just skip
2966 struct binder_context *context = proc->context;
2986 strscpy(e->context_name, proc->context->name, BINDERFS_MAX_NAME);
3075 mutex_lock(&context->context_mgr_node_lock);
3076 target_node = context->binder_context_mgr_node;
3083 mutex_unlock(&context->context_mgr_node_lock);
3085 binder_user_error("%d:%d got transaction to context manager from process owning it\n",
3263 binder_txn_error("%d:%d failed to get security context\n",
3874 struct binder_context *context = proc->context;
3910 mutex_lock(&context->context_mgr_node_lock);
3911 ctx_mgr_node = context->binder_context_mgr_node;
3914 binder_user_error("%d:%d context manager tried to acquire desc 0\n",
3916 mutex_unlock(&context->context_mgr_node_lock);
3923 mutex_unlock(&context->context_mgr_node_lock);
4392 * Now that we are in the context of the transaction target
4997 device = container_of(proc->context, struct binder_device, context);
4999 kfree(proc->context->name);
5208 struct binder_context *context = proc->context;
5212 mutex_lock(&context->context_mgr_node_lock);
5213 if (context->binder_context_mgr_node) {
5221 if (uid_valid(context->binder_context_mgr_uid)) {
5222 if (!uid_eq(context->binder_context_mgr_uid, curr_euid)) {
5226 context->binder_context_mgr_uid));
5231 context->binder_context_mgr_uid = curr_euid;
5243 context->binder_context_mgr_node = new_node;
5247 mutex_unlock(&context->context_mgr_node_lock);
5255 struct binder_context *context = proc->context;
5265 /* This ioctl may only be used by the context manager */
5266 mutex_lock(&context->context_mgr_node_lock);
5267 if (!context->binder_context_mgr_node ||
5268 context->binder_context_mgr_node->proc != proc) {
5269 mutex_unlock(&context->context_mgr_node_lock);
5272 mutex_unlock(&context->context_mgr_node_lock);
5813 proc->context = &binder_dev->context;
5989 struct binder_context *context = proc->context;
5997 mutex_lock(&context->context_mgr_node_lock);
5998 if (context->binder_context_mgr_node &&
5999 context->binder_context_mgr_node->proc == proc) {
6003 context->binder_context_mgr_node = NULL;
6005 mutex_unlock(&context->context_mgr_node_lock);
6293 seq_printf(m, "context %s\n", proc->context->name);
6460 seq_printf(m, "context %s\n", proc->context->name);
6608 "%d: %s from %d:%d to %d:%d context %s node %d handle %d size %d:%d ret %d/%d l=%d",
6807 seq_printf(m, "%s\t", proc->context->name);
6854 binder_device->context.binder_context_mgr_uid = INVALID_UID;
6855 binder_device->context.name = name;
6856 mutex_init(&binder_device->context.context_mgr_node_lock);