summaryrefslogtreecommitdiff
path: root/dev.h
blob: cebcee4877d5556f90ff4b541062e0d43fa7852e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef DEV_H
#define DEV_H

#include <sys/socket.h>
#include "built_in.h"

extern int device_mtu(const char *ifname);
extern int device_address(const char *ifname, int af, struct sockaddr_storage *ss);
extern int device_ifindex(const char *ifname);
extern short device_get_flags(const char *ifname);
extern void device_set_flags(const char *ifname, const short flags);
extern int device_up_and_running(char *ifname);
extern u32 device_bitrate(const char *ifname);

#endif /* DEV_H */
>space:mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2016-07-25 10:43:13 +0200
committerTony Luck <tony.luck@intel.com>2016-07-25 09:55:32 -0700
commitfbb0e4da96f4503e65bc4fb627cf4e1d7c8c64e6 (patch)
tree7c17fa1f6f451a838974067ef63372818404c495 /Documentation/hwmon/tmp401
parent70f4f9352317ed8bc70cd7fe2bf34a3f9f7f21e3 (diff)
ia64: salinfo: use a waitqueue instead a sema down/up combo
The only purpose of down_try_lock() followed by up() seems to be to wake up a possible reader. This patch replaces it with a wake-queue. There is no locking around cpumask_empty() and the test is re-done in case there was no hit. With wait_event_interruptible_lock_irq(,&data_saved_lock) we would probably be able to get rid of the `retry` label. However we still can return CPU X which is valid now but later (after the lock dropped) the event may have been removed because the CPU went offline. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'Documentation/hwmon/tmp401')