io_bitmap
struct io_bitmap *iobm = t->io_bitmap;
struct io_bitmap;
(offsetof(struct tss_struct, io_bitmap.bitmap) - \
(offsetof(struct tss_struct, io_bitmap.mapall) - \
struct x86_io_bitmap io_bitmap;
struct io_bitmap *io_bitmap;
tss->io_bitmap.prev_max = 0;
tss->io_bitmap.prev_sequence = 0;
memset(tss->io_bitmap.bitmap, 0xff, sizeof(tss->io_bitmap.bitmap));
tss->io_bitmap.mapall[IO_BITMAP_LONGS] = ~0UL;
t->io_bitmap = iobm;
if (current->thread.io_bitmap) {
refcount_inc(¤t->thread.io_bitmap->refcnt);
tsk->thread.io_bitmap = current->thread.io_bitmap;
if (t->iopl_emul == 3 || t->io_bitmap) {
struct io_bitmap *iobm = tsk->thread.io_bitmap;
tsk->thread.io_bitmap = NULL;
struct io_bitmap *iobm;
iobm = t->io_bitmap;
p->thread.io_bitmap = NULL;
static void tss_copy_io_bitmap(struct tss_struct *tss, struct io_bitmap *iobm)
memcpy(tss->io_bitmap.bitmap, iobm->bitmap,
max(tss->io_bitmap.prev_max, iobm->max));
tss->io_bitmap.prev_max = iobm->max;
tss->io_bitmap.prev_sequence = iobm->sequence;
struct io_bitmap *iobm = t->io_bitmap;
if (tss->io_bitmap.prev_sequence != iobm->sequence)
struct io_bitmap *iobm = target->thread.io_bitmap;
struct io_bitmap *iobm = target->thread.io_bitmap;