https://github.com/torvalds/linux
Raw File
Tip revision: 33cc938e65a98f1d29d0a18403dbbee050dcad9a authored by Linus Torvalds on 03 December 2023, 09:52:56 UTC
Linux 6.7-rc4
Tip revision: 33cc938
sonet.h
/* SPDX-License-Identifier: GPL-2.0 */
/* 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