#include <linux/net_tstamp.h>
#include "netlink.h"
#include "common.h"
#include "bitset.h"
struct tsinfo_req_info { … };
struct tsinfo_reply_data { … };
#define TSINFO_REPDATA(__reply_base) …
#define ETHTOOL_TS_STAT_CNT …
const struct nla_policy ethnl_tsinfo_get_policy[] = …;
static int tsinfo_prepare_data(const struct ethnl_req_info *req_base,
struct ethnl_reply_data *reply_base,
const struct genl_info *info)
{ … }
static int tsinfo_reply_size(const struct ethnl_req_info *req_base,
const struct ethnl_reply_data *reply_base)
{ … }
static int tsinfo_put_stat(struct sk_buff *skb, u64 val, u16 attrtype)
{ … }
static int tsinfo_put_stats(struct sk_buff *skb,
const struct ethtool_ts_stats *stats)
{ … }
static int tsinfo_fill_reply(struct sk_buff *skb,
const struct ethnl_req_info *req_base,
const struct ethnl_reply_data *reply_base)
{ … }
const struct ethnl_request_ops ethnl_tsinfo_request_ops = …;