Lines Matching defs:object

642  * struct binder_object - union of flat binder object types
643 * @hdr: generic object header
644 * @fbo: binder object (nodes and refs)
645 * @fdo: file descriptor object
649 * Used for type-independent object copies
2070 * binder_get_object() - gets object and checks for valid metadata
2074 * @offset: offset in the @buffer at which to validate an object.
2075 * @object: struct binder_object to read into
2077 * Copy the binder object at the given offset into @object. If @u is
2081 * Return: If there's a valid metadata object at @offset, the
2082 * size of that object. Otherwise, it returns zero. The object
2083 * is read into the struct binder_object pointed to by @object.
2089 struct binder_object *object)
2095 read_size = min_t(size_t, sizeof(*object), buffer->data_size - offset);
2101 if (copy_from_user(object, u + offset, read_size))
2104 if (binder_alloc_copy_from_buffer(&proc->alloc, object, buffer,
2109 /* Ok, now see if we read a complete object. */
2110 hdr = &object->hdr;
2140 * @b: binder_buffer containing the object
2141 * @object: struct binder_object to read into
2145 * @object_offsetp: offset of @object read from @b
2151 * of the offset array, that object is returned. Otherwise,
2162 struct binder_object *object,
2180 object_size = binder_get_object(proc, NULL, b, object_offset, object);
2181 if (!object_size || object->hdr.type != BINDER_TYPE_PTR)
2186 return &object->bbo;
2197 * @last_min_offset: minimum fixup offset in object at @last_obj_offset
2204 * buffer object that was verified, or one of its parents.
2221 * Referring to a parent that wasn't the last object or any of its parents:
2354 struct binder_object object;
2361 object_offset, &object);
2363 pr_err("transaction release %d bad object at offset %lld, size %zd\n",
2367 hdr = &object.hdr;
2502 pr_err("transaction release %d bad object type %x\n",
3037 struct binder_object object;
3044 parent = binder_validate_ptr(target_proc, b, &object, bp->parent,
3578 struct binder_object object;
3594 * Copy the source user buffer up to the next object
3613 t->buffer, object_offset, &object);
3615 binder_user_error("%d:%d got transaction with invalid offset (%lld, min %lld max %lld) or object.\n",
3631 hdr = &object.hdr;
3727 * object to get the original user offset
3733 binder_user_error("%d:%d invalid ptr object size: %zd vs %zd\n",
3811 binder_user_error("%d:%d got transaction with invalid object type, %x\n",