Loading...
Searching...
No Matches
ethernet.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "compiler_hints.h"
19#include "net/gnrc/netif.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
40ACCESS(write_only, 2, 3)
41int gnrc_netif_ethernet_create(gnrc_netif_t *netif, char *stack, int stacksize,
42 char priority, char *name, netdev_t *dev);
43
44#ifdef __cplusplus
45}
46#endif
47
Common macros and compiler attributes/pragmas configuration.
#define ACCESS(mode, ptr_idx, size_idx)
Emit an attribute (if supported by the compiler) that declares how a function will access its paramet...
int gnrc_netif_ethernet_create(gnrc_netif_t *netif, char *stack, int stacksize, char priority, char *name, netdev_t *dev)
Creates an Ethernet network interface.
Definition for GNRC's network interfaces.
struct netdev netdev_t
Forward declaration for netdev struct.
Definition netdev.h:285
Representation of a network interface.
Definition netif.h:137