indir
} indir = { 0 };
ufs1_daddr_t *bap1 = &indir.ufs1;
ufs2_daddr_t *bap2 = &indir.ufs2;
if (bwrite(&disk, fsbtodb(&sblock, blk), indir.buf,
int indir;
be_lun->indir = 0;
be_lun->indir++;
be_lun->indir = 0;
ctl_backend_ramdisk_freeallpages(be_lun->pages, be_lun->indir);
ctl_backend_ramdisk_freeallpages(be_lun->pages, be_lun->indir);
for (s = (be_lun->indir - 1) * PPPS; s >= 0; s -= PPPS) {
for (s = (be_lun->indir - 1) * PPPS; s >= 0; s -= PPPS) {
for (s = (be_lun->indir - 1) * PPPS; s >= 0; s -= PPPS) {
for (s = (be_lun->indir - 1) * PPPS; s >= 0; s -= PPPS) {
ctl_backend_ramdisk_freeallpages(uint8_t **p, int indir)
if (indir == 0) {
ctl_backend_ramdisk_freeallpages((uint8_t **)p[i], indir - 1);
struct ena_indir *indir = adapter->rss_indir;
if (indir == NULL)
adapter->rss_indir = indir = malloc(sizeof(struct ena_indir),
rc = ena_rss_indir_get(adapter, indir->table);
ena_rss_copy_indir_buf(indir->sysctl_buf, indir->table);
struct ena_indir *indir;
indir = adapter->rss_indir;
msg = indir->sysctl_buf;
if (unlikely(indir == NULL)) {
error = sysctl_handle_string(oidp, msg, sizeof(indir->sysctl_buf), req);
indir->table[idx] = value;
ena_rss_indir_get(adapter, indir->table);
ena_rss_copy_indir_buf(msg, indir->table);
error = ena_rss_indir_set(adapter, indir->table);
sc->s_malloc.indir = dimension(sc->mediasize / sc->sectorsize);
error = s_write(sc->s_malloc.indir, u, sp);
if (sc->s_malloc.indir != NULL)
destroy_indir(sc, sc->s_malloc.indir);
struct indir *indir;
static struct indir *
struct indir *ip;
del_indir(struct indir *ip)
destroy_indir(struct md_s *sc, struct indir *ip)
destroy_indir(sc, (struct indir*)(ip->array[i]));
static struct indir *
struct indir *ip;
s_read(struct indir *ip, off_t offset)
struct indir *cip;
cip = (struct indir *)up;
s_write(struct indir *ip, off_t offset, uintptr_t ptr)
struct indir *cip, *lip[10];
cip = (struct indir *)up;
cip = (struct indir *)up;
osp = s_read(sc->s_malloc.indir, secno);
error = s_write(sc->s_malloc.indir, secno, 0);
error = s_write(sc->s_malloc.indir,
error = s_write(sc->s_malloc.indir,
struct indir start_ap[EXT2_NIADDR + 1], end_ap[EXT2_NIADDR + 1], *idp;
struct indir indirs[EXT2_NIADDR + 2];
struct indir a[EXT2_NIADDR + 1], *ap;
struct indir a[EXT2_NIADDR + 1], *ap;
ext2_getlbns(struct vnode *vp, daddr_t bn, struct indir *ap, int *nump)
struct indir;
int ext2_getlbns(struct vnode *, daddr_t, struct indir *, int *);
struct indir start_ap[UFS_NIADDR + 1], end_ap[UFS_NIADDR + 1], *idp;
struct indir start_ap[UFS_NIADDR + 1], end_ap[UFS_NIADDR + 1], *idp;
struct indir indirs[UFS_NIADDR + 2];
struct indir indirs[UFS_NIADDR + 2];
struct indir indirs[UFS_NIADDR + 2];
struct indir indirs[UFS_NIADDR + 2];
struct indir a[UFS_NIADDR+1], *ap;
struct indir a[UFS_NIADDR + 1], *ap;
struct indir *ap,
struct indir;
int ufs_getlbns(struct vnode *, ufs2_daddr_t, struct indir *, int *);
char indir[MAXBSIZE];
if (bread(&disk, fsbtodb(fs, blkno), indir, fs->fs_bsize) == -1) {
memcpy(indir, bp->b_un.b_buf, fs->fs_bsize);
blkno = ((ufs1_daddr_t *)indir)[i];
blkno = ((ufs2_daddr_t *)indir)[i];
blkno = ((ufs1_daddr_t *)indir)[i];
blkno = ((ufs2_daddr_t *)indir)[i];
struct indir indirs[UFS_NIADDR + 2];
struct indir indirs[UFS_NIADDR + 2];
int ufs_getlbns(struct inode *, daddr_t, struct indir *, int *);
ufs_getlbns(struct inode *ip, daddr_t bn, struct indir *ap, int *nump)