linux/net/core/link_watch.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Linux network device link state notification
 *
 * Author:
 *     Stefan Rompf <[email protected]>
 */

#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/if.h>
#include <net/sock.h>
#include <net/pkt_sched.h>
#include <linux/rtnetlink.h>
#include <linux/jiffies.h>
#include <linux/spinlock.h>
#include <linux/workqueue.h>
#include <linux/bitops.h>
#include <linux/types.h>

#include "dev.h"

enum lw_bits {};

static unsigned long linkwatch_flags;
static unsigned long linkwatch_nextevent;

static void linkwatch_event(struct work_struct *dummy);
static DECLARE_DELAYED_WORK(linkwatch_work, linkwatch_event);

static LIST_HEAD(lweventlist);
static DEFINE_SPINLOCK(lweventlist_lock);

static unsigned int default_operstate(const struct net_device *dev)
{}

static void rfc2863_policy(struct net_device *dev)
{}


void linkwatch_init_dev(struct net_device *dev)
{}


static bool linkwatch_urgent_event(struct net_device *dev)
{}


static void linkwatch_add_event(struct net_device *dev)
{}


static void linkwatch_schedule_work(int urgent)
{}


static void linkwatch_do_dev(struct net_device *dev)
{}

static void __linkwatch_run_queue(int urgent_only)
{}

void linkwatch_sync_dev(struct net_device *dev)
{}


/* Must be called with the rtnl semaphore held */
void linkwatch_run_queue(void)
{}


static void linkwatch_event(struct work_struct *dummy)
{}


void linkwatch_fire_event(struct net_device *dev)
{}
EXPORT_SYMBOL();