summaryrefslogtreecommitdiff
path: root/link.h
blob: 621a5bb651aef43b2a1d27ce148541ab913cba55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef LINK_H
#define LINK_H

#include <stdint.h>
#include <sys/socket.h>
#include <linux/ethtool.h>
#include <linux/wireless.h>

#ifndef SPEED_UNKNOWN
#define SPEED_UNKNOWN           -1
#endif

#include "built_in.h"

extern int wireless_sigqual(const char *ifname, struct iw_statistics *stats);
extern int wireless_rangemax_sigqual(const char *ifname);
extern uint32_t wireless_bitrate(const char *ifname);
extern uint32_t ethtool_bitrate(const char *ifname);
extern int ethtool_drvinf(const char *ifname, struct ethtool_drvinfo *drvinf);
extern int ethtool_link(const char *ifname);

#endif /* LINK_H */
a href='/cgit.cgi/linux/net-next.git/patch/?id=8729bdea829ebecfbc9601ba792e35f63331f63e'>patch) tree26c124d21e99b7bc0593cd3cbd759df665fcc173 parentee8520fe8cd4cd2658ca555781eefeb4914c4ef9 (diff)
libnvdimm: initialize struct blk_integrity with 0
Initialize struct blk_integrity with 0 as blk_integrity_register() takes the then unitialized struct blk_integrity::flags and ORs it to the resulting block integrity structure. Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat