https://github.com/torvalds/linux
Raw File
Tip revision: 9395452b4aab7bc2475ef8935b4a4fb99d778d70 authored by Linus Torvalds on 12 September 2016, 03:02:25 UTC
Linux 4.8-rc6
Tip revision: 9395452
sonet.h
/* sonet.h - SONET/SHD physical layer control */
#ifndef LINUX_SONET_H
#define LINUX_SONET_H


#include <linux/atomic.h>
#include <uapi/linux/sonet.h>

struct k_sonet_stats {
#define __HANDLE_ITEM(i) atomic_t i
	__SONET_ITEMS
#undef __HANDLE_ITEM
};

extern void sonet_copy_stats(struct k_sonet_stats *from,struct sonet_stats *to);
extern void sonet_subtract_stats(struct k_sonet_stats *from,
    struct sonet_stats *to);

#endif
back to top