Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
net/packet/af_packet.c __packet_rcv_try_clear_pressure() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | po | 4096-ptr_max |
| PARAM_VALUE | 1 | flag | 5 |
| DATA_SOURCE | 0 | po | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &sk->sk_receive_queue.lock | ||
| LOCK2 | bh | ||
| TYPE_LOCK | (struct sk_buff_head)->lock |
net/packet/af_packet.c __register_prot_hook() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 4 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &po->bind_lock |
net/packet/af_packet.c fanout_add() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | po | 4096-ptr_max |
| PARAM_VALUE | 1 | flag | 4 |
| BUF_SIZE | 0 | po->fanout | 264-524544,u64max |
| BUF_SIZE | 0 | po->rollover | 0,128 |
| CAPPED_DATA | 0 | po->fanout->prot_hook.type | 1 |
| CAPPED_DATA | 0 | po->fanout->type | 1 |
| CAPPED_DATA | 0 | po->prot_hook.dev | 1 |
| CAPPED_DATA | 0 | po->prot_hook.type | 1 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | po->fanout->flags | 0-255 |
| USER_DATA | 0 | po->fanout->id | 0-u16max |
| USER_DATA | 0 | po->fanout->max_num_members | 1-65536[c] |
| USER_DATA | 0 | po->fanout->prot_hook.ignore_outgoing | 0-1[c] |
| USER_DATA | 0 | po->fanout->type | 0-2,4-7[c] |
| LOCK2 | global &fanout_mutex | ||
| LOCK2 | 0 | &po->bind_lock | |
| TYPE_LOCK | (struct packet_sock)->bind_lock |
net/packet/af_packet.c fanout_demux_rollover() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 5 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read |
net/packet/af_packet.c packet_do_bind() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | po | 4096-ptr_max |
| PARAM_VALUE | 1 | flag | 4 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read | ||
| LOCK2 | sk | ||
| LOCK2 | 0 | &po->bind_lock | |
| TYPE_LOCK | (struct packet_sock)->bind_lock |
net/packet/af_packet.c packet_do_bind() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | po | 4096-ptr_max |
| PARAM_VALUE | 1 | flag | 4 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read | ||
| LOCK2 | sk | ||
| LOCK2 | 0 | &po->bind_lock | |
| TYPE_LOCK | (struct packet_sock)->bind_lock |
net/packet/af_packet.c packet_getsockopt() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 1 |
| RX_PATH |
net/packet/af_packet.c packet_getsockopt() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 0 |
| RX_PATH |
net/packet/af_packet.c packet_getsockopt() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 3 |
| RX_PATH |
net/packet/af_packet.c packet_getsockopt() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 2 |
| RX_PATH |
net/packet/af_packet.c packet_getsockopt() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 6 |
| RX_PATH |
net/packet/af_packet.c packet_notifier() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | po | 4096-ptr_max |
| PARAM_VALUE | 1 | flag | 4 |
| CAPPED_DATA | 0 | po->ifindex | 1 |
| PREEMPT_ADD | <- disables preempt | ||
| LOCK2 | rcu_read | ||
| LOCK2 | 0 | &po->bind_lock | |
| TYPE_LOCK | (struct packet_sock)->bind_lock |
net/packet/af_packet.c packet_rcv() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read |
net/packet/af_packet.c packet_rcv_has_room() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | po | 4096-ptr_max |
| PARAM_VALUE | 1 | flag | 5 |
| DATA_SOURCE | 0 | po | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read |
net/packet/af_packet.c packet_rcv_try_clear_pressure() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 5 |
| DATA_SOURCE | 0 | po | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &vq->mutex |
net/packet/af_packet.c packet_recvmsg() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &vq->mutex | ||
| HALF_LOCKED2 | sk |
net/packet/af_packet.c packet_seq_show() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &seq->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
net/packet/af_packet.c packet_set_ring() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | po | 4096-ptr_max |
| PARAM_VALUE | 1 | flag | 4 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | sk | ||
| LOCK2 | 0 | &po->bind_lock | |
| TYPE_LOCK | (struct packet_sock)->bind_lock |
net/packet/af_packet.c packet_xmit() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 6 |
| DATA_SOURCE | 0 | po | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &vq->mutex | ||
| HALF_LOCKED2 | sk | ||
| HALF_LOCKED2 | 0 | &po->pg_vec_lock |
net/packet/af_packet.c tpacket_parse_header() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | po | 4096-ptr_max |
| PARAM_VALUE | 1 | flag | 2 |
| DATA_SOURCE | 0 | po | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &po->pg_vec_lock | |
| HALF_LOCKED2 | &vq->mutex | ||
| HALF_LOCKED2 | sk | ||
| TYPE_LOCK | (struct packet_sock)->pg_vec_lock |
net/packet/af_packet.c tpacket_rcv() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | po | 4096-ptr_max |
| PARAM_VALUE | 1 | flag | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &(&po->rx_ring)->prb_bdqc.blk_fill_in_prog_lock | ||
| HALF_LOCKED2 | rcu_read |
net/packet/af_packet.c tpacket_snd() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | po | 4096-ptr_max |
| PARAM_VALUE | 1 | flag | 3 |
| CAPPED_DATA | 0 | &po->pg_vec_lock | 1 |
| DATA_SOURCE | 0 | po | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &po->pg_vec_lock | |
| HALF_LOCKED2 | &vq->mutex | ||
| TYPE_LOCK | (struct packet_sock)->pg_vec_lock |
net/packet/af_packet.c unregister_prot_hook() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 4 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &po->bind_lock | ||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| TYPE_LOCK | (struct packet_sock)->bind_lock |
net/packet/diag.c pdiag_put_info() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | po | 4096-ptr_max |
| PARAM_VALUE | 1 | flag | 4 |
| DATA_SOURCE | 0 | po | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &net->packet.sklist_lock | ||
| HALF_LOCKED2 | &nlk->nl_cb_mutex | ||
| TYPE_LOCK | (struct netlink_sock)->nl_cb_mutex | ||
| TYPE_LOCK | (struct netns_packet)->sklist_lock |
net/packet/diag.c pdiag_put_info() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | po | 4096-ptr_max |
| PARAM_VALUE | 1 | flag | 1 |
| DATA_SOURCE | 0 | po | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &net->packet.sklist_lock | ||
| HALF_LOCKED2 | &nlk->nl_cb_mutex | ||
| TYPE_LOCK | (struct netlink_sock)->nl_cb_mutex | ||
| TYPE_LOCK | (struct netns_packet)->sklist_lock |
net/packet/diag.c pdiag_put_info() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | po | 4096-ptr_max |
| PARAM_VALUE | 1 | flag | 0 |
| DATA_SOURCE | 0 | po | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &net->packet.sklist_lock | ||
| HALF_LOCKED2 | &nlk->nl_cb_mutex | ||
| TYPE_LOCK | (struct netlink_sock)->nl_cb_mutex | ||
| TYPE_LOCK | (struct netns_packet)->sklist_lock |
net/packet/diag.c pdiag_put_info() -> packet_sock_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | po | 4096-ptr_max |
| PARAM_VALUE | 1 | flag | 3 |
| DATA_SOURCE | 0 | po | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &net->packet.sklist_lock | ||
| HALF_LOCKED2 | &nlk->nl_cb_mutex | ||
| TYPE_LOCK | (struct netlink_sock)->nl_cb_mutex | ||
| TYPE_LOCK | (struct netns_packet)->sklist_lock |