sock.h (d04fb13c9fcdad850c0fcaeb155863de3d8169a0) sock.h (76a9ebe811fb3d0605cb084f1ae6be5610541865)
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * Definitions for the AF_INET socket handler.
7 *
8 * Version: @(#)sock.h 1.0.4 05/13/93

--- 408 unchanged lines hidden (view full) ---

417 __s32 sk_peek_off;
418 int sk_write_pending;
419 __u32 sk_dst_pending_confirm;
420 u32 sk_pacing_status; /* see enum sk_pacing */
421 long sk_sndtimeo;
422 struct timer_list sk_timer;
423 __u32 sk_priority;
424 __u32 sk_mark;
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * Definitions for the AF_INET socket handler.
7 *
8 * Version: @(#)sock.h 1.0.4 05/13/93

--- 408 unchanged lines hidden (view full) ---

417 __s32 sk_peek_off;
418 int sk_write_pending;
419 __u32 sk_dst_pending_confirm;
420 u32 sk_pacing_status; /* see enum sk_pacing */
421 long sk_sndtimeo;
422 struct timer_list sk_timer;
423 __u32 sk_priority;
424 __u32 sk_mark;
425 u32 sk_pacing_rate; /* bytes per second */
426 u32 sk_max_pacing_rate;
425 unsigned long sk_pacing_rate; /* bytes per second */
426 unsigned long sk_max_pacing_rate;
427 struct page_frag sk_frag;
428 netdev_features_t sk_route_caps;
429 netdev_features_t sk_route_nocaps;
430 netdev_features_t sk_route_forced_caps;
431 int sk_gso_type;
432 unsigned int sk_gso_max_size;
433 gfp_t sk_allocation;
434 __u32 sk_txhash;

--- 1774 unchanged lines hidden (view full) ---

2209 if (gfpflags_allow_blocking(sk->sk_allocation))
2210 return &current->task_frag;
2211
2212 return &sk->sk_frag;
2213}
2214
2215bool sk_page_frag_refill(struct sock *sk, struct page_frag *pfrag);
2216
427 struct page_frag sk_frag;
428 netdev_features_t sk_route_caps;
429 netdev_features_t sk_route_nocaps;
430 netdev_features_t sk_route_forced_caps;
431 int sk_gso_type;
432 unsigned int sk_gso_max_size;
433 gfp_t sk_allocation;
434 __u32 sk_txhash;

--- 1774 unchanged lines hidden (view full) ---

2209 if (gfpflags_allow_blocking(sk->sk_allocation))
2210 return &current->task_frag;
2211
2212 return &sk->sk_frag;
2213}
2214
2215bool sk_page_frag_refill(struct sock *sk, struct page_frag *pfrag);
2216
2217int sk_alloc_sg(struct sock *sk, int len, struct scatterlist *sg,
2218 int sg_start, int *sg_curr, unsigned int *sg_size,
2219 int first_coalesce);
2220
2217/*
2218 * Default write policy as shown to user space via poll/select/SIGIO
2219 */
2220static inline bool sock_writeable(const struct sock *sk)
2221{
2222 return refcount_read(&sk->sk_wmem_alloc) < (sk->sk_sndbuf >> 1);
2223}
2224

--- 279 unchanged lines hidden ---
2221/*
2222 * Default write policy as shown to user space via poll/select/SIGIO
2223 */
2224static inline bool sock_writeable(const struct sock *sk)
2225{
2226 return refcount_read(&sk->sk_wmem_alloc) < (sk->sk_sndbuf >> 1);
2227}
2228

--- 279 unchanged lines hidden ---