id
stringlengths
4
63
text
stringlengths
153
8.81M
sk_TYPE_set.3ssl(3)
NAME DEFINE_STACK_OF, DEFINE_STACK_OF_CONST, DEFINE_SPECIAL_STACK_OF, DEFINE_SPECIAL_STACK_OF_CONST, sk_TYPE_num, sk_TYPE_value, sk_TYPE_new, sk_TYPE_new_null, sk_TYPE_reserve, sk_TYPE_free, sk_TYPE_zero, sk_TYPE_delete, sk_TYPE_delete_ptr, sk_TYPE_push, sk_TYPE_unshift, sk_TYPE_pop, sk_TYPE_shift, sk_TYPE_pop_free, sk...
sk_TYPE_set_cmp_func.3ssl(3)
NAME DEFINE_STACK_OF, DEFINE_STACK_OF_CONST, DEFINE_SPECIAL_STACK_OF, DEFINE_SPECIAL_STACK_OF_CONST, sk_TYPE_num, sk_TYPE_value, sk_TYPE_new, sk_TYPE_new_null, sk_TYPE_reserve, sk_TYPE_free, sk_TYPE_zero, sk_TYPE_delete, sk_TYPE_delete_ptr, sk_TYPE_push, sk_TYPE_unshift, sk_TYPE_pop, sk_TYPE_shift, sk_TYPE_pop_free, sk...
sk_TYPE_shift.3ssl(3)
NAME DEFINE_STACK_OF, DEFINE_STACK_OF_CONST, DEFINE_SPECIAL_STACK_OF, DEFINE_SPECIAL_STACK_OF_CONST, sk_TYPE_num, sk_TYPE_value, sk_TYPE_new, sk_TYPE_new_null, sk_TYPE_reserve, sk_TYPE_free, sk_TYPE_zero, sk_TYPE_delete, sk_TYPE_delete_ptr, sk_TYPE_push, sk_TYPE_unshift, sk_TYPE_pop, sk_TYPE_shift, sk_TYPE_pop_free, sk...
sk_TYPE_sort.3ssl(3)
NAME DEFINE_STACK_OF, DEFINE_STACK_OF_CONST, DEFINE_SPECIAL_STACK_OF, DEFINE_SPECIAL_STACK_OF_CONST, sk_TYPE_num, sk_TYPE_value, sk_TYPE_new, sk_TYPE_new_null, sk_TYPE_reserve, sk_TYPE_free, sk_TYPE_zero, sk_TYPE_delete, sk_TYPE_delete_ptr, sk_TYPE_push, sk_TYPE_unshift, sk_TYPE_pop, sk_TYPE_shift, sk_TYPE_pop_free, sk...
sk_TYPE_unshift.3ssl(3)
NAME DEFINE_STACK_OF, DEFINE_STACK_OF_CONST, DEFINE_SPECIAL_STACK_OF, DEFINE_SPECIAL_STACK_OF_CONST, sk_TYPE_num, sk_TYPE_value, sk_TYPE_new, sk_TYPE_new_null, sk_TYPE_reserve, sk_TYPE_free, sk_TYPE_zero, sk_TYPE_delete, sk_TYPE_delete_ptr, sk_TYPE_push, sk_TYPE_unshift, sk_TYPE_pop, sk_TYPE_shift, sk_TYPE_pop_free, sk...
sk_TYPE_value.3ssl(3)
NAME DEFINE_STACK_OF, DEFINE_STACK_OF_CONST, DEFINE_SPECIAL_STACK_OF, DEFINE_SPECIAL_STACK_OF_CONST, sk_TYPE_num, sk_TYPE_value, sk_TYPE_new, sk_TYPE_new_null, sk_TYPE_reserve, sk_TYPE_free, sk_TYPE_zero, sk_TYPE_delete, sk_TYPE_delete_ptr, sk_TYPE_push, sk_TYPE_unshift, sk_TYPE_pop, sk_TYPE_shift, sk_TYPE_pop_free, sk...
sk_TYPE_zero.3ssl(3)
NAME DEFINE_STACK_OF, DEFINE_STACK_OF_CONST, DEFINE_SPECIAL_STACK_OF, DEFINE_SPECIAL_STACK_OF_CONST, sk_TYPE_num, sk_TYPE_value, sk_TYPE_new, sk_TYPE_new_null, sk_TYPE_reserve, sk_TYPE_free, sk_TYPE_zero, sk_TYPE_delete, sk_TYPE_delete_ptr, sk_TYPE_push, sk_TYPE_unshift, sk_TYPE_pop, sk_TYPE_shift, sk_TYPE_pop_free, sk...
sk_alloc(9)
NAME sk_alloc - All socket objects are allocated here SYNOPSIS struct sock * sk_alloc (struct net *net , int family , gfp_t priority , struct proto *prot , int kern ); ARGUMENTS net the applicable net namespace family protocol family priority for allocation (GFP_KERNEL, GFP_ATOMIC, etc...
sk_attach_filter(9)
NAME sk_attach_filter - attach a socket filter SYNOPSIS int sk_attach_filter (struct sock_fprog *fprog , struct sock *sk ); ARGUMENTS fprog the filter program sk the socket to use DESCRIPTION Attach the user's filter code. We first run some sanity checks on it to make sure it does not explo...
sk_capable(9)
NAME sk_capable - Socket global capability test SYNOPSIS bool sk_capable (const struct sock *sk , int cap ); ARGUMENTS sk Socket to use a capability on or through cap The global capability to use DESCRIPTION Test to see if the opener of the socket had when the socket was created and the curr...
sk_clone(9)
NAME sk_clone - clone a socket SYNOPSIS struct sock * sk_clone (const struct sock *sk , const gfp_t priority , bool lock ); ARGUMENTS sk the socket to clone priority for allocation (GFP_KERNEL, GFP_ATOMIC, etc) lock if true, lock the cloned sk DESCRIPTION If lock is true, the clone...
sk_eat_skb(9)
NAME sk_eat_skb - Release a skb if it is no longer needed SYNOPSIS void sk_eat_skb (struct sock *sk , struct sk_buff *skb ); ARGUMENTS sk socket to eat this skb from skb socket buffer to eat DESCRIPTION This routine must be called with interrupts disabled or with the socket locked so that th...
sk_filter_release(9)
NAME sk_filter_release - release a socket filter SYNOPSIS void sk_filter_release (struct sk_filter *fp ); ARGUMENTS fp filter to remove DESCRIPTION Remove a filter from a socket and release its resources. SEE ALSO Kernel file ./net/core/filter.c sk_filter_trim_cap(9), bpf_convert_filter(9), bpf_check_...
sk_filter_release_rcu(9)
NAME sk_filter_release_rcu - Release a socket filter by rcu_head SYNOPSIS void sk_filter_release_rcu (struct rcu_head *rcu ); ARGUMENTS rcu rcu_head that contains the sk_filter to free SEE ALSO Kernel file ./net/core/filter.c sk_filter_trim_cap(9), bpf_convert_filter(9), bpf_check_classic(9), sk_fil...
sk_filter_trim_cap(9)
NAME sk_filter_trim_cap - run a packet through a socket filter SYNOPSIS int sk_filter_trim_cap (struct sock *sk , struct sk_buff *skb , unsigned int cap , enum skb_drop_reason *reason ); ARGUMENTS sk sock associated with sk_buff skb buffer to filter cap limit on how short the ...
sk_for_each_entry_offset_rcu(9)
NAME sk_for_each_entry_offset_rcu - iterate over a list at a given struct offset SYNOPSIS sk_for_each_entry_offset_rcu (tpos , pos , head , offset ); ARGUMENTS tpos the type * to use as a loop cursor. pos the struct hlist_node to use as a loop cursor. head the head for your list....
sk_has_allocations(9)
NAME sk_has_allocations - check if allocations are outstanding SYNOPSIS bool sk_has_allocations (const struct sock *sk ); ARGUMENTS sk socket RETURN true if socket has write or read allocations SEE ALSO Kernel file ./include/net/sock.h struct sock_common(9), struct sock(9), sk_user_data_is_nocopy(9), __l...
sk_net_capable(9)
NAME sk_net_capable - Network namespace socket capability test SYNOPSIS bool sk_net_capable (const struct sock *sk , int cap ); ARGUMENTS sk Socket to use a capability on or through cap The capability to use DESCRIPTION Test to see if the opener of the socket had when the socket was created ...
sk_ns_capable(9)
NAME sk_ns_capable - General socket capability test SYNOPSIS bool sk_ns_capable (const struct sock *sk , struct user_namespace *user_ns , int cap ); ARGUMENTS sk Socket to use a capability on or through user_ns The user namespace of the capability to use cap The capability to use ...
sk_page_frag(9)
NAME sk_page_frag - return an appropriate page_frag SYNOPSIS struct page_frag * sk_page_frag (struct sock *sk ); ARGUMENTS sk socket DESCRIPTION Use the per task page_frag instead of the per socket one for optimization when we know that we're in process context and own everything that's associated with cur...
sk_rmem_alloc_get(9)
NAME sk_rmem_alloc_get - returns read allocations SYNOPSIS int sk_rmem_alloc_get (const struct sock *sk ); ARGUMENTS sk socket RETURN sk_rmem_alloc SEE ALSO Kernel file ./include/net/sock.h struct sock_common(9), struct sock(9), sk_user_data_is_nocopy(9), __locked_read_sk_user_data_with_flags(9), __rcu_d...
sk_set_memalloc(9)
NAME sk_set_memalloc - sets %SOCK_MEMALLOC SYNOPSIS void sk_set_memalloc (struct sock *sk ); ARGUMENTS sk socket to set it on DESCRIPTION Set SOCK_MEMALLOC on a socket for access to emergency reserves. It's the responsibility of the admin to adjust min_free_kbytes to meet the requirements SEE ALSO Kernel ...
sk_skb_reason_drop(9)
NAME sk_skb_reason_drop - free an sk_buff with special reason SYNOPSIS void __fix_address sk_skb_reason_drop (struct sock *sk , struct sk_buff *skb , enum skb_drop_reason reason ); ARGUMENTS sk the socket to receive skb, or NULL if not applicable skb buffer to free reason reason ...
sk_stream_closing(9)
NAME sk_stream_closing - Return 1 if we still have things to send in our buffers. SYNOPSIS int sk_stream_closing (const struct sock *sk ); ARGUMENTS sk socket to verify SEE ALSO Kernel file ./net/core/stream.c sk_stream_write_space(9), sk_stream_wait_connect(9), sk_stream_wait_memory(9) April 2026 ...
sk_stream_wait_connect(9)
NAME sk_stream_wait_connect - Wait for a socket to get into the connected state SYNOPSIS int sk_stream_wait_connect (struct sock *sk , long *timeo_p ); ARGUMENTS sk sock to wait on timeo_p for how long to wait DESCRIPTION Must be called with the socket locked. SEE ALSO Kernel file ./net/core/st...
sk_stream_wait_memory(9)
NAME sk_stream_wait_memory - Wait for more memory for a socket SYNOPSIS int sk_stream_wait_memory (struct sock *sk , long *timeo_p ); ARGUMENTS sk socket to wait for memory timeo_p for how long SEE ALSO Kernel file ./net/core/stream.c sk_stream_write_space(9), sk_stream_wait_connect(9), sk_strea...
sk_stream_write_space(9)
NAME sk_stream_write_space - stream socket write_space callback. SYNOPSIS void sk_stream_write_space (struct sock *sk ); ARGUMENTS sk pointer to the socket structure DESCRIPTION This function is invoked when there's space available in the socket's send buffer for writing. It first checks if the socket i...
sk_to_full_sk(9)
NAME sk_to_full_sk - Access to a full socket SYNOPSIS struct sock * sk_to_full_sk (struct sock *sk ); ARGUMENTS sk pointer to a socket DESCRIPTION SYNACK messages might be attached to request sockets. Some places want to reach the listener in this case. SEE ALSO Kernel file ./include/net/inet_sock.h inet_...
sk_user_data_is_nocopy(9)
NAME sk_user_data_is_nocopy - Test if sk_user_data pointer must not be copied SYNOPSIS bool sk_user_data_is_nocopy (const struct sock *sk ); ARGUMENTS sk socket SEE ALSO Kernel file ./include/net/sock.h struct sock_common(9), struct sock(9), __locked_read_sk_user_data_with_flags(9), __rcu_dereference...
sk_wait_data(9)
NAME sk_wait_data - wait for data to arrive at sk_receive_queue SYNOPSIS int sk_wait_data (struct sock *sk , long *timeo , const struct sk_buff *skb ); ARGUMENTS sk sock to wait on timeo for how long skb last skb seen on sk_receive_queue DESCRIPTION Now socket state including ...
sk_wmem_alloc_get(9)
NAME sk_wmem_alloc_get - returns write allocations SYNOPSIS int sk_wmem_alloc_get (const struct sock *sk ); ARGUMENTS sk socket RETURN sk_wmem_alloc minus initial offset of one SEE ALSO Kernel file ./include/net/sock.h struct sock_common(9), struct sock(9), sk_user_data_is_nocopy(9), __locked_read_sk_use...
skb_abort_seq_read(9)
NAME skb_abort_seq_read - Abort a sequential read of skb data SYNOPSIS void skb_abort_seq_read (struct skb_seq_state *st ); ARGUMENTS st state variable DESCRIPTION Must be called if skb_seq_read was not called until it returned 0. SEE ALSO Kernel file ./net/core/skbuff.c drop_reasons_register_subsys(9),...
skb_append(9)
NAME skb_append - append a buffer SYNOPSIS void skb_append (struct sk_buff *old , struct sk_buff *newsk , struct sk_buff_head *list ); ARGUMENTS old buffer to insert after newsk buffer to insert list list to use DESCRIPTION Place a packet after a given packet in a list. The list ...
skb_attempt_defer_free(9)
NAME skb_attempt_defer_free - queue skb for remote freeing SYNOPSIS void skb_attempt_defer_free (struct sk_buff *skb ); ARGUMENTS skb buffer DESCRIPTION Put skb in a per-cpu list, using the cpu which allocated the skb/pages to reduce false sharing and memory zone spinlock contention. SEE ALSO Kernel file ...
skb_availroom(9)
NAME skb_availroom - bytes at buffer end SYNOPSIS int skb_availroom (const struct sk_buff *skb ); ARGUMENTS skb buffer to check DESCRIPTION Return the number of bytes of free space at the tail of an sk_buff allocated by sk_stream_alloc SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_si...
skb_checksum_complete(9)
NAME skb_checksum_complete - Calculate checksum of an entire packet SYNOPSIS __sum16 skb_checksum_complete (struct sk_buff *skb ); ARGUMENTS skb packet to process DESCRIPTION This function calculates the checksum over the entire packet plus the value of skb->csum. The latter can be used to supply the checks...
skb_checksum_maybe_trim(9)
NAME skb_checksum_maybe_trim - maybe trims the given skb SYNOPSIS struct sk_buff * skb_checksum_maybe_trim (struct sk_buff *skb , unsigned int transport_len ); ARGUMENTS skb the skb to check transport_len the data length beyond the network header DESCRIPTION Checks whether the giv...
skb_checksum_none_assert(9)
NAME skb_checksum_none_assert - make sure skb ip_summed is CHECKSUM_NONE SYNOPSIS void skb_checksum_none_assert (const struct sk_buff *skb ); ARGUMENTS skb skb to check DESCRIPTION fresh skbs have their ip_summed set to CHECKSUM_NONE. Instead of forcing ip_summed to CHECKSUM_NONE, we can use this helper, to...
skb_checksum_setup(9)
NAME skb_checksum_setup - set up partial checksum offset SYNOPSIS int skb_checksum_setup (struct sk_buff *skb , bool recalculate ); ARGUMENTS skb the skb to set up recalculate if true the pseudo-header checksum will be recalculated SEE ALSO Kernel file ./net/core/skbuff.c drop_reasons_register_sub...
skb_checksum_trimmed(9)
NAME skb_checksum_trimmed - validate checksum of an skb SYNOPSIS struct sk_buff * skb_checksum_trimmed (struct sk_buff *skb , unsigned int transport_len , __sum16(*skb_chkf)(struct sk_buff *skb) ); ARGUMENTS skb the skb to check transport_len the data length beyond the network heade...
skb_clone(9)
NAME skb_clone - duplicate an sk_buff SYNOPSIS struct sk_buff * skb_clone (struct sk_buff *skb , gfp_t gfp_mask ); ARGUMENTS skb buffer to clone gfp_mask allocation priority DESCRIPTION Duplicate an sk_buff. The new one is not owned by a socket. Both copies share the same packet data but not stru...
skb_clone_sk(9)
NAME skb_clone_sk - create clone of skb, and take reference to socket SYNOPSIS struct sk_buff * skb_clone_sk (struct sk_buff *skb ); ARGUMENTS skb the skb to clone DESCRIPTION This function creates a clone of a buffer that holds a reference on sk_refcnt. Buffers created via this function are meant to be r...
skb_clone_writable(9)
NAME skb_clone_writable - is the header of a clone writable SYNOPSIS int skb_clone_writable (const struct sk_buff *skb , unsigned int len ); ARGUMENTS skb buffer to check len length up to which to write DESCRIPTION Returns true if modifying the header part of the cloned buffer does not requir...
skb_cloned(9)
NAME skb_cloned - is the buffer a clone SYNOPSIS int skb_cloned (const struct sk_buff *skb ); ARGUMENTS skb buffer to check DESCRIPTION Returns true if the buffer was generated with skb_clone and is one of multiple shared copies of the buffer. Cloned buffers are shared data so must not be written to under no...
skb_complete_tx_timestamp(9)
NAME skb_complete_tx_timestamp - deliver cloned skb with tx timestamps SYNOPSIS void skb_complete_tx_timestamp (struct sk_buff *skb , struct skb_shared_hwtstamps *hwtstamps ); ARGUMENTS skb clone of the original outgoing packet hwtstamps hardware time stamps DESCRIPTION PHY drivers may accept clone...
skb_complete_wifi_ack(9)
NAME skb_complete_wifi_ack - deliver skb with wifi status SYNOPSIS void skb_complete_wifi_ack (struct sk_buff *skb , bool acked ); ARGUMENTS skb the original outgoing packet acked ack status SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_size(9), skb_frag_size_set(9), skb...
skb_condense(9)
NAME skb_condense - try to get rid of fragments/frag_list if possible SYNOPSIS void skb_condense (struct sk_buff *skb ); ARGUMENTS skb buffer DESCRIPTION Can be used to save memory before skb is added to a busy queue. If packet has bytes in frags and enough tail room in skb->head, pull all of them, so that ...
skb_copy(9)
NAME skb_copy - create private copy of an sk_buff SYNOPSIS struct sk_buff * skb_copy (const struct sk_buff *skb , gfp_t gfp_mask ); ARGUMENTS skb buffer to copy gfp_mask allocation priority DESCRIPTION Make a copy of both an sk_buff and its data. This is used when the caller wishes to modify the...
skb_copy_and_crc32c_datagram_iter(9)
NAME skb_copy_and_crc32c_datagram_iter - Copy datagram to an iovec iterator and update a CRC32C value. SYNOPSIS int skb_copy_and_crc32c_datagram_iter (const struct sk_buff *skb , int offset , struct iov_iter *to , int len , u32 *crcp ); ARGUMENTS skb buffer to copy offset offset in the buffer to ...
skb_copy_and_csum_datagram(9)
NAME skb_copy_and_csum_datagram - Copy datagram to an iovec iterator and update a checksum. SYNOPSIS int skb_copy_and_csum_datagram (const struct sk_buff *skb , int offset , struct iov_iter *to , int len , __wsum *csump ); ARGUMENTS skb buffer to copy offset offset in the buffer to start copying ...
skb_copy_and_csum_datagram_msg(9)
NAME skb_copy_and_csum_datagram_msg - Copy and checksum skb to user iovec. SYNOPSIS int skb_copy_and_csum_datagram_msg (struct sk_buff *skb , int hlen , struct msghdr *msg ); ARGUMENTS skb skbuff hlen hardware length msg destination DESCRIPTION Caller _must_ check that skb will...
skb_copy_bits(9)
NAME skb_copy_bits - copy bits from skb to kernel buffer SYNOPSIS int skb_copy_bits (const struct sk_buff *skb , int offset , void *to , int len ); ARGUMENTS skb source skb offset offset in source to destination buffer len number of bytes to copy DESCRIPTION Copy...
skb_copy_datagram_from_iter(9)
NAME skb_copy_datagram_from_iter - Copy a datagram from an iov_iter. SYNOPSIS int skb_copy_datagram_from_iter (struct sk_buff *skb , int offset , struct iov_iter *from , int len ); ARGUMENTS skb buffer to copy offset offset in the buffer to start copying to from the copy source ...
skb_copy_datagram_iter(9)
NAME skb_copy_datagram_iter - Copy a datagram to an iovec iterator. SYNOPSIS int skb_copy_datagram_iter (const struct sk_buff *skb , int offset , struct iov_iter *to , int len ); ARGUMENTS skb buffer to copy offset offset in the buffer to start copying from to iovec iterator to c...
skb_copy_expand(9)
NAME skb_copy_expand - copy and expand sk_buff SYNOPSIS struct sk_buff * skb_copy_expand (const struct sk_buff *skb , int newheadroom , int newtailroom , gfp_t gfp_mask ); ARGUMENTS skb buffer to copy newheadroom new free bytes at head newtailroom new free bytes at tail gfp_mask all...
skb_copy_seq_read(9)
NAME skb_copy_seq_read - copy from a skb_seq_state to a buffer SYNOPSIS int skb_copy_seq_read (struct skb_seq_state *st , int offset , void *to , int len ); ARGUMENTS st source skb_seq_state offset offset in source to destination buffer len number of bytes to cop...
skb_copy_ubufs(9)
NAME skb_copy_ubufs - copy userspace skb frags buffers to kernel SYNOPSIS int skb_copy_ubufs (struct sk_buff *skb , gfp_t gfp_mask ); ARGUMENTS skb the skb to modify gfp_mask allocation priority DESCRIPTION This must be called on skb with SKBFL_ZEROCOPY_ENABLE. It will copy all frags into kernel...
skb_cow(9)
NAME skb_cow - copy header of skb when it is required SYNOPSIS int skb_cow (struct sk_buff *skb , unsigned int headroom ); ARGUMENTS skb buffer to cow headroom needed headroom DESCRIPTION If the skb passed lacks sufficient headroom or its data part is shared, data is reallocated. If ...
skb_cow_data(9)
NAME skb_cow_data - Check that a socket buffer's data buffers are writable SYNOPSIS int skb_cow_data (struct sk_buff *skb , int tailbits , struct sk_buff **trailer ); ARGUMENTS skb The socket buffer to check. tailbits Amount of trailing space to be added trailer Returned pointer to the ...
skb_cow_head(9)
NAME skb_cow_head - skb_cow but only making the head writable SYNOPSIS int skb_cow_head (struct sk_buff *skb , unsigned int headroom ); ARGUMENTS skb buffer to cow headroom needed headroom DESCRIPTION This function is identical to skb_cow except that we replace the skb_cloned check by skb_header_c...
skb_data_move(9)
NAME skb_data_move - Move packet data and metadata after skb_push() or skb_pull(). SYNOPSIS void skb_data_move (struct sk_buff *skb , const int len , const unsigned int n ); ARGUMENTS skb packet to operate on len number of bytes pushed or pulled from sk_buff->data n number of...
skb_dequeue(9)
NAME skb_dequeue - remove from the head of the queue SYNOPSIS struct sk_buff * skb_dequeue (struct sk_buff_head *list ); ARGUMENTS list list to dequeue from DESCRIPTION Remove the head of the list. The list lock is taken so the function may be used safely with other locking list functions. The head item is re...
skb_dequeue_tail(9)
NAME skb_dequeue_tail - remove from the tail of the queue SYNOPSIS struct sk_buff * skb_dequeue_tail (struct sk_buff_head *list ); ARGUMENTS list list to dequeue from DESCRIPTION Remove the tail of the list. The list lock is taken so the function may be used safely with other locking list functions. The tail ...
skb_dst(9)
NAME skb_dst - returns skb dst_entry SYNOPSIS struct dst_entry * skb_dst (const struct sk_buff *skb ); ARGUMENTS skb buffer RETURN skb dst_entry, regardless of reference taken or not. SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_size(9), skb_frag_size_set(9), skb_frag_size_add(9), s...
skb_dst_drop(9)
NAME skb_dst_drop - drops skb dst SYNOPSIS void skb_dst_drop (struct sk_buff *skb ); ARGUMENTS skb buffer DESCRIPTION Drops dst reference count if a reference was taken. SEE ALSO Kernel file ./include/net/dst.h dst_hold_safe(9), skb_dst_force(9), __skb_tunnel_rx(9), skb_tunnel_rx(9) April 2026 ...
skb_dst_force(9)
NAME skb_dst_force - makes sure skb dst is refcounted SYNOPSIS bool skb_dst_force (struct sk_buff *skb ); ARGUMENTS skb buffer DESCRIPTION If dst is not yet refcounted and not destroyed, grab a ref on it. RETURN true if dst is refcounted. SEE ALSO Kernel file ./include/net/dst.h skb_dst_drop(9), dst_hold_s...
skb_dst_is_noref(9)
NAME skb_dst_is_noref - Test if skb dst isn't refcounted SYNOPSIS bool skb_dst_is_noref (const struct sk_buff *skb ); ARGUMENTS skb buffer SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_size(9), skb_frag_size_set(9), skb_frag_size_add(9), skb_frag_size_sub(9), skb_frag_must_loop(9), sk...
skb_dst_set(9)
NAME skb_dst_set - sets skb dst SYNOPSIS void skb_dst_set (struct sk_buff *skb , struct dst_entry *dst ); ARGUMENTS skb buffer dst dst entry DESCRIPTION Sets skb dst, assuming a reference was taken on dst and should be released by skb_dst_drop SEE ALSO Kernel file ./include/linux/skbuff.h Ke...
skb_dst_set_noref(9)
NAME skb_dst_set_noref - sets skb dst, hopefully, without taking reference SYNOPSIS void skb_dst_set_noref (struct sk_buff *skb , struct dst_entry *dst ); ARGUMENTS skb buffer dst dst entry DESCRIPTION Sets skb dst, assuming a reference was not taken on dst. If dst entry is cached, we...
skb_dstref_restore(9)
NAME skb_dstref_restore - restore skb dst_entry removed via skb_dstref_steal() SYNOPSIS void skb_dstref_restore (struct sk_buff *skb , unsigned long refdst ); ARGUMENTS skb buffer refdst dst entry from a call to skb_dstref_steal SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_fr...
skb_dstref_steal(9)
NAME skb_dstref_steal - return current dst_entry value and clear it SYNOPSIS unsigned long skb_dstref_steal (struct sk_buff *skb ); ARGUMENTS skb buffer DESCRIPTION Resets skb dst_entry without adjusting its reference count. Useful in cases where dst_entry needs to be temporarily reset and restored. ...
skb_eth_gso_segment(9)
NAME skb_eth_gso_segment - segmentation handler for ethernet protocols. SYNOPSIS struct sk_buff * skb_eth_gso_segment (struct sk_buff *skb , netdev_features_t features , __be16 type ); ARGUMENTS skb buffer to segment features features for the output path (see dev->features) type Ethe...
skb_eth_pop(9)
NAME skb_eth_pop - Drop the Ethernet header at the head of a packet SYNOPSIS int skb_eth_pop (struct sk_buff *skb ); ARGUMENTS skb Socket buffer to modify DESCRIPTION Drop the Ethernet header of skb. Expects that skb->data points to the mac header and that no VLAN tags are present. Returns 0 on success, -e...
skb_eth_push(9)
NAME skb_eth_push - Add a new Ethernet header at the head of a packet SYNOPSIS int skb_eth_push (struct sk_buff *skb , const unsigned char *dst , const unsigned char *src ); ARGUMENTS skb Socket buffer to modify dst Destination MAC address of the new header src Source MAC addre...
skb_expand_head(9)
NAME skb_expand_head - reallocate header of &sk_buff SYNOPSIS struct sk_buff * skb_expand_head (struct sk_buff *skb , unsigned int headroom ); ARGUMENTS skb buffer to reallocate headroom needed headroom DESCRIPTION Unlike skb_realloc_headroom, this one does not allocate a new skb if possible; copi...
skb_ext_add(9)
NAME skb_ext_add - allocate space for given extension, COW if needed SYNOPSIS void * skb_ext_add (struct sk_buff *skb , enum skb_ext_id id ); ARGUMENTS skb buffer id extension to allocate space for DESCRIPTION Allocates enough space for the given extension. If the extension is already pre...
skb_fclone_busy(9)
NAME skb_fclone_busy - check if fclone is busy SYNOPSIS bool skb_fclone_busy (const struct sock *sk , const struct sk_buff *skb ); ARGUMENTS sk socket skb buffer RETURN true if skb is a fast clone, and its clone is not freed. Some drivers call skb_orphan in their ndo_start_xmit, so we also ...
skb_fill_page_desc(9)
NAME skb_fill_page_desc - initialise a paged fragment in an skb SYNOPSIS void skb_fill_page_desc (struct sk_buff *skb , int i , struct page *page , int off , int size ); ARGUMENTS skb buffer containing fragment to be initialised i paged fragment index to initialise page the pa...
skb_fill_page_desc_noacc(9)
NAME skb_fill_page_desc_noacc - initialise a paged fragment in an skb SYNOPSIS void skb_fill_page_desc_noacc (struct sk_buff *skb , int i , struct page *page , int off , int size ); ARGUMENTS skb buffer containing fragment to be initialised i paged fragment index to initialise page ...
skb_find_text(9)
NAME skb_find_text - Find a text pattern in skb data SYNOPSIS unsigned int skb_find_text (struct sk_buff *skb , unsigned int from , unsigned int to , struct ts_config *config ); ARGUMENTS skb the buffer to look in from search offset to search limit config textsearc...
skb_flow_get_icmp_tci(9)
NAME skb_flow_get_icmp_tci - extract ICMP(6) Type, Code and Identifier fields SYNOPSIS void skb_flow_get_icmp_tci (const struct sk_buff *skb , struct flow_dissector_key_icmp *key_icmp , const void *data , int thoff , int hlen ); ARGUMENTS skb sk_buff to extract from key_icmp struct flow_dissector_k...
skb_flow_get_ports(9)
NAME skb_flow_get_ports - extract the upper layer ports and return them SYNOPSIS __be32 skb_flow_get_ports (const struct sk_buff *skb , int thoff , u8 ip_proto , const void *data , int hlen ); ARGUMENTS skb sk_buff to extract the ports from thoff transport header offset ip_proto proto...
skb_frag_address(9)
NAME skb_frag_address - gets the address of the data contained in a paged fragment SYNOPSIS void * skb_frag_address (const skb_frag_t *frag ); ARGUMENTS frag the paged fragment buffer RETURN the address of the data within frag. The page must already be mapped. SEE ALSO Kernel file ./include/linux/skbuff.h Ke...
skb_frag_address_safe(9)
NAME skb_frag_address_safe - gets the address of the data contained in a paged fragment SYNOPSIS void * skb_frag_address_safe (const skb_frag_t *frag ); ARGUMENTS frag the paged fragment buffer RETURN the address of the data within frag. Checks that the page is mapped and returns NULL otherwise. SEE ALSO Ker...
skb_frag_foreach_page(9)
NAME skb_frag_foreach_page - loop over pages in a fragment SYNOPSIS skb_frag_foreach_page (f , f_off , f_len , p , p_off , p_len , copied ); ARGUMENTS f skb frag to operate on f_off offset from start of f->netmem f_len length from f_off to loop over p (temp var)...
skb_frag_must_loop(9)
NAME skb_frag_must_loop - Test if %p is a high memory page SYNOPSIS bool skb_frag_must_loop (struct page *p ); ARGUMENTS p fragment's page SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_size(9), skb_frag_size_set(9), skb_frag_size_add(9), skb_frag_size_sub(9), skb_frag_foreach_...
skb_frag_net_iov(9)
NAME skb_frag_net_iov - retrieve the net_iov referred to by fragment SYNOPSIS struct net_iov * skb_frag_net_iov (const skb_frag_t *frag ); ARGUMENTS frag the fragment RETURN the struct net_iov associated with frag. Returns NULL if this frag has no associated net_iov. SEE ALSO Kernel file ./include/linux/skbu...
skb_frag_netmem(9)
NAME skb_frag_netmem - retrieve the netmem referred to by a fragment SYNOPSIS netmem_ref skb_frag_netmem (const skb_frag_t *frag ); ARGUMENTS frag the fragment RETURN the netmem_ref associated with frag. SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_size(9), skb_frag_size_set(9), skb_...
skb_frag_off(9)
NAME skb_frag_off - Returns the offset of a skb fragment SYNOPSIS unsigned int skb_frag_off (const skb_frag_t *frag ); ARGUMENTS frag the paged fragment SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_size(9), skb_frag_size_set(9), skb_frag_size_add(9), skb_frag_size_sub(9), skb_frag_mus...
skb_frag_off_add(9)
NAME skb_frag_off_add - Increments the offset of a skb fragment by @delta SYNOPSIS void skb_frag_off_add (skb_frag_t *frag , int delta ); ARGUMENTS frag skb fragment delta value to add SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_size(9), skb_frag_size_set(9), skb_frag_s...
skb_frag_off_copy(9)
NAME skb_frag_off_copy - Sets the offset of a skb fragment from another fragment SYNOPSIS void skb_frag_off_copy (skb_frag_t *fragto , const skb_frag_t *fragfrom ); ARGUMENTS fragto skb fragment where offset is set fragfrom skb fragment offset is copied from SEE ALSO Kernel file ./include/linux/skbuf...
skb_frag_off_set(9)
NAME skb_frag_off_set - Sets the offset of a skb fragment SYNOPSIS void skb_frag_off_set (skb_frag_t *frag , unsigned int offset ); ARGUMENTS frag skb fragment offset offset of fragment SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_size(9), skb_frag_size_set(9), skb_frag_s...
skb_frag_page(9)
NAME skb_frag_page - retrieve the page referred to by a paged fragment SYNOPSIS struct page * skb_frag_page (const skb_frag_t *frag ); ARGUMENTS frag the paged fragment RETURN the struct page associated with frag. Returns NULL if this frag has no associated page. SEE ALSO Kernel file ./include/linux/skbuff.h...
skb_frag_page_copy(9)
NAME skb_frag_page_copy - sets the page in a fragment from another fragment SYNOPSIS void skb_frag_page_copy (skb_frag_t *fragto , const skb_frag_t *fragfrom ); ARGUMENTS fragto skb fragment where page is set fragfrom skb fragment page is copied from SEE ALSO Kernel file ./include/linux/skbuff.h Kern...
skb_frag_ref(9)
NAME skb_frag_ref - take an addition reference on a paged fragment of an skb. SYNOPSIS void skb_frag_ref (struct sk_buff *skb , int f ); ARGUMENTS skb the buffer f the fragment offset. DESCRIPTION Takes an additional reference on the f'th paged fragment of skb. SEE ALSO Kernel file ./inclu...
skb_frag_size(9)
NAME skb_frag_size - Returns the size of a skb fragment SYNOPSIS unsigned int skb_frag_size (const skb_frag_t *frag ); ARGUMENTS frag skb fragment SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_size_set(9), skb_frag_size_add(9), skb_frag_size_sub(9), skb_frag_must_loop(9), skb_frag_for...
skb_frag_size_add(9)
NAME skb_frag_size_add - Increments the size of a skb fragment by @delta SYNOPSIS void skb_frag_size_add (skb_frag_t *frag , int delta ); ARGUMENTS frag skb fragment delta value to add SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_size(9), skb_frag_size_set(9), skb_f...
skb_frag_size_set(9)
NAME skb_frag_size_set - Sets the size of a skb fragment SYNOPSIS void skb_frag_size_set (skb_frag_t *frag , unsigned int size ); ARGUMENTS frag skb fragment size size of fragment SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_size(9), skb_frag_size_add(9), skb_frag_...
skb_frag_size_sub(9)
NAME skb_frag_size_sub - Decrements the size of a skb fragment by @delta SYNOPSIS void skb_frag_size_sub (skb_frag_t *frag , int delta ); ARGUMENTS frag skb fragment delta value to subtract SEE ALSO Kernel file ./include/linux/skbuff.h Kernel API(9), skb_frag_size(9), skb_frag_size_set(9), ...
skb_frag_unref(9)
NAME skb_frag_unref - release a reference on a paged fragment of an skb. SYNOPSIS void skb_frag_unref (struct sk_buff *skb , int f ); ARGUMENTS skb the buffer f the fragment offset DESCRIPTION Releases a reference on the f'th paged fragment of skb. SEE ALSO Kernel file ./include/linux/skbu...