kmem_cache_t *slab;
int slab_obj_size;
- struct module *owner;
-
char name[32];
struct {
__kfree_skb(skb);
}
+extern atomic_t netstamp_needed;
extern void sock_enable_timestamp(struct sock *sk);
+
+static inline void net_timestamp(struct timeval *stamp)
+{
+ if (atomic_read(&netstamp_needed))
+ do_gettimeofday(stamp);
+ else {
+ stamp->tv_sec = 0;
+ stamp->tv_usec = 0;
+ }
+}
+
extern int sock_get_timestamp(struct sock *, struct timeval __user *);
/*
extern __u32 sysctl_wmem_max;
extern __u32 sysctl_rmem_max;
-#ifdef CONFIG_NET
int siocdevprivate_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
-#else
-static inline int siocdevprivate_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg)
-{
- return -ENODEV;
-}
-#endif
#endif /* _SOCK_H */