linux/fs/afs/vl_list.c

// SPDX-License-Identifier: GPL-2.0-or-later
/* AFS vlserver list management.
 *
 * Copyright (C) 2018 Red Hat, Inc. All Rights Reserved.
 * Written by David Howells ([email protected])
 */

#include <linux/kernel.h>
#include <linux/slab.h>
#include "internal.h"

struct afs_vlserver *afs_alloc_vlserver(const char *name, size_t name_len,
					unsigned short port)
{}

static void afs_vlserver_rcu(struct rcu_head *rcu)
{}

void afs_put_vlserver(struct afs_net *net, struct afs_vlserver *vlserver)
{}

struct afs_vlserver_list *afs_alloc_vlserver_list(unsigned int nr_servers)
{}

void afs_put_vlserverlist(struct afs_net *net, struct afs_vlserver_list *vllist)
{}

static u16 afs_extract_le16(const u8 **_b)
{}

/*
 * Build a VL server address list from a DNS queried server list.
 */
static struct afs_addr_list *afs_extract_vl_addrs(struct afs_net *net,
						  const u8 **_b, const u8 *end,
						  u8 nr_addrs, u16 port)
{}

/*
 * Build a VL server list from a DNS queried server list.
 */
struct afs_vlserver_list *afs_extract_vlserver_list(struct afs_cell *cell,
						    const void *buffer,
						    size_t buffer_size)
{}