Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/android/tests/binder_alloc_kunit.c binder_alloc_test_mmap() -> binder_alloc_buffer_size()

Type Parameter Key Value
PARAM_VALUE 0 alloc 4096-ptr_max
PARAM_VALUE 1 buffer 4096-ptr_max
BUF_SIZE 0 alloc 256

drivers/android/binder_alloc.c binder_alloc_clear_buf() -> binder_alloc_buffer_size()

Type Parameter Key Value
PARAM_VALUE 0 alloc 4096-ptr_max
PARAM_VALUE 1 buffer 4096-ptr_max
DATA_SOURCE 0 alloc $0
DATA_SOURCE 1 buffer $1
TASK_NOT_RUNNING
USER_DATA 0 alloc->free_async_space 1-9223372036854775798[c][u]
USER_DATA 1 buffer->async_transaction 0-1
USER_DATA 1 buffer->data_size 0-u64max[c]
USER_DATA 1 buffer->extra_buffers_size 0-u64max[c]
USER_DATA 1 buffer->offsets_size 0-u64max[c]
USER_DATA 1 buffer->user_data 0-u64max[c]
HALF_LOCKED2 0 &alloc->mutex

drivers/android/binder_alloc.c binder_alloc_new_buf_locked() -> binder_alloc_buffer_size()

Type Parameter Key Value
PARAM_VALUE 0 alloc 4096-ptr_max
PARAM_VALUE 1 buffer 4096-ptr_max
DATA_SOURCE 0 alloc $0
UNITS 1 buffer unit_byte
LOCK2 0 &alloc->mutex
TYPE_LOCK (struct binder_alloc)->mutex

drivers/android/binder_alloc.c binder_alloc_new_buf_locked() -> binder_alloc_buffer_size()

Type Parameter Key Value
PARAM_VALUE 0 alloc 4096-ptr_max
PARAM_VALUE 1 buffer 4096-ptr_max
DATA_SOURCE 0 alloc $0
UNITS 1 buffer unit_byte
LOCK2 0 &alloc->mutex
TYPE_LOCK (struct binder_alloc)->mutex

drivers/android/binder_alloc.c binder_free_buf_locked() -> binder_alloc_buffer_size()

Type Parameter Key Value
PARAM_VALUE 0 alloc 4096-ptr_max
PARAM_VALUE 1 buffer 4096-ptr_max
DATA_SOURCE 0 alloc $0
DATA_SOURCE 1 buffer $1
TASK_NOT_RUNNING
USER_DATA 0 alloc->free_async_space 1-9223372036854775798[c][u]
USER_DATA 1 buffer->async_transaction 0-1
USER_DATA 1 buffer->data_size 0-u64max[c]
USER_DATA 1 buffer->extra_buffers_size 0-u64max[c]
USER_DATA 1 buffer->offsets_size 0-u64max[c]
USER_DATA 1 buffer->user_data 0-u64max[c]
LOCK2 0 &alloc->mutex
TYPE_LOCK (struct binder_alloc)->mutex

drivers/android/binder_alloc.c binder_insert_free_buffer() -> binder_alloc_buffer_size()

Type Parameter Key Value
PARAM_VALUE 0 alloc 4096-ptr_max
PARAM_VALUE 1 buffer 4096-ptr_max
BUF_SIZE 0 alloc (-1),1216
BUF_SIZE 0 alloc (-1),1216
BUF_SIZE 0 alloc->pages (-1)-8192
BUF_SIZE 1 buffer (-1),104
BUF_SIZE 1 buffer (-1),104
DATA_SOURCE 0 alloc $0
DATA_SOURCE 1 buffer $1
NOSPEC 0 alloc->vm_start
NOSPEC 1 buffer->user_data
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 alloc->free_async_space 1-9223372036854775798[c][u]
USER_DATA 0 alloc->vm_start 0-18446744073709547520
USER_DATA 1 buffer->async_transaction 0-1
USER_DATA 1 buffer->data_size 0-u64max[c]
USER_DATA 1 buffer->extra_buffers_size 0-u64max[c]
USER_DATA 1 buffer->offsets_size 0-u64max[c]
USER_DATA 1 buffer->user_data 0-18446744073709547520
HALF_LOCKED2 0 &alloc->mutex

drivers/android/binder_alloc.c binder_insert_free_buffer() -> binder_alloc_buffer_size()

Type Parameter Key Value
PARAM_VALUE 0 alloc 4096-ptr_max
PARAM_VALUE 1 buffer 4096-ptr_max
BUF_SIZE 0 alloc (-1),1216
BUF_SIZE 0 alloc (-1),1216
BUF_SIZE 0 alloc->pages (-1)-8192
DATA_SOURCE 0 alloc $0
NOSPEC 0 alloc->vm_start
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 alloc->free_async_space 1-9223372036854775798[c][u]
USER_DATA 0 alloc->vm_start 0-18446744073709547520
HALF_LOCKED2 0 &alloc->mutex

drivers/android/binder_alloc.c check_buffer() -> binder_alloc_buffer_size()

Type Parameter Key Value
BUF_SIZE 1 buffer->transaction (-1),232
DATA_SOURCE 0 alloc $0
DATA_SOURCE 1 buffer $1
NOSPEC 1 buffer->data_size
TASK_NOT_RUNNING
USER_DATA 0 alloc->free_async_space 1-9223372036854775798[c][u]
USER_DATA 1 buffer->async_transaction 0-1
USER_DATA 1 buffer->clear_on_free 0-1
USER_DATA 1 buffer->data_size 0-u64max[c]
USER_DATA 1 buffer->extra_buffers_size 0-u64max[c]
USER_DATA 1 buffer->offsets_size 0-u64max[c]
USER_DATA 1 buffer->user_data 0-u64max[c]

drivers/android/binder_alloc.c debug_low_async_space_locked() -> binder_alloc_buffer_size()

Type Parameter Key Value
PARAM_VALUE 0 alloc 4096-ptr_max
PARAM_VALUE 1 buffer 4096-ptr_max
CAPPED_DATA 0 alloc->free_async_space 1
CAPPED_DATA 1 buffer->pid 1
DATA_SOURCE 0 alloc $0
USER_DATA 0 alloc->free_async_space 1-s32max[c]
UNITS 1 buffer unit_byte
LOCK2 0 &alloc->mutex
TYPE_LOCK (struct binder_alloc)->mutex

drivers/android/binder_alloc.c debug_no_space_locked() -> binder_alloc_buffer_size()

Type Parameter Key Value
PARAM_VALUE 0 alloc 4096-ptr_max
PARAM_VALUE 1 buffer 4096-ptr_max
DATA_SOURCE 0 alloc $0
UNITS 1 buffer unit_byte
LOCK2 0 &alloc->mutex
TYPE_LOCK (struct binder_alloc)->mutex

drivers/android/binder_alloc.c debug_no_space_locked() -> binder_alloc_buffer_size()

Type Parameter Key Value
PARAM_VALUE 0 alloc 4096-ptr_max
PARAM_VALUE 1 buffer 4096-ptr_max
DATA_SOURCE 0 alloc $0
UNITS 1 buffer unit_byte
LOCK2 0 &alloc->mutex
TYPE_LOCK (struct binder_alloc)->mutex