···7676 * the other protocols.7777 */78787979-/* Define this to get the SOCK_DBG debugging facility. */8080-#define SOCK_DEBUGGING8181-#ifdef SOCK_DEBUGGING8282-#define SOCK_DEBUG(sk, msg...) do { if ((sk) && sock_flag((sk), SOCK_DBG)) \8383- printk(KERN_DEBUG msg); } while (0)8484-#else8585-/* Validate arguments and do nothing */8686-static inline __printf(2, 3)8787-void SOCK_DEBUG(const struct sock *sk, const char *msg, ...)8888-{8989-}9090-#endif9191-9279/* This is the per-socket lock. The spinlock provides a synchronization9380 * between user contexts and software interrupt processing, whereas the9481 * mini-semaphore synchronizes multiple users amongst themselves.