linux/fs/adfs/dir_f.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 *  linux/fs/adfs/dir_f.c
 *
 * Copyright (C) 1997-1999 Russell King
 *
 *  E and F format directory handling
 */
#include "adfs.h"
#include "dir_f.h"

/*
 * Read an (unaligned) value of length 1..4 bytes
 */
static inline unsigned int adfs_readval(unsigned char *p, int len)
{}

static inline void adfs_writeval(unsigned char *p, int len, unsigned int val)
{}

#define ror13(v)

#define dir_u8(idx)

#define dir_u32(idx)

#define bufoff(_bh,_idx)

/*
 * There are some algorithms that are nice in
 * assembler, but a bitch in C...  This is one
 * of them.
 */
static u8
adfs_dir_checkbyte(const struct adfs_dir *dir)
{}

static int adfs_f_validate(struct adfs_dir *dir)
{}

/* Read and check that a directory is valid */
static int adfs_f_read(struct super_block *sb, u32 indaddr, unsigned int size,
		       struct adfs_dir *dir)
{}

/*
 * convert a disk-based directory entry to a Linux ADFS directory entry
 */
static inline void
adfs_dir2obj(struct adfs_dir *dir, struct object_info *obj,
	struct adfs_direntry *de)
{}

/*
 * convert a Linux ADFS directory entry to a disk-based directory entry
 */
static inline void
adfs_obj2dir(struct adfs_direntry *de, struct object_info *obj)
{}

/*
 * get a directory entry.  Note that the caller is responsible
 * for holding the relevant locks.
 */
static int
__adfs_dir_get(struct adfs_dir *dir, int pos, struct object_info *obj)
{}

static int
adfs_f_setpos(struct adfs_dir *dir, unsigned int fpos)
{}

static int
adfs_f_getnext(struct adfs_dir *dir, struct object_info *obj)
{}

static int adfs_f_iterate(struct adfs_dir *dir, struct dir_context *ctx)
{}

static int adfs_f_update(struct adfs_dir *dir, struct object_info *obj)
{}

static int adfs_f_commit(struct adfs_dir *dir)
{}

const struct adfs_dir_ops adfs_f_dir_ops =;