Home
last modified time | relevance | path

Searched refs:iobm (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/arch/x86/kernel/
Dioport.c54 struct io_bitmap *iobm = tsk->thread.io_bitmap; in io_bitmap_exit() local
58 if (iobm && refcount_dec_and_test(&iobm->refcnt)) in io_bitmap_exit()
59 kfree(iobm); in io_bitmap_exit()
69 struct io_bitmap *iobm; in ksys_ioperm() local
82 iobm = t->io_bitmap; in ksys_ioperm()
83 if (!iobm) { in ksys_ioperm()
87 iobm = kmalloc(sizeof(*iobm), GFP_KERNEL); in ksys_ioperm()
88 if (!iobm) in ksys_ioperm()
91 memset(iobm->bitmap, 0xff, sizeof(iobm->bitmap)); in ksys_ioperm()
92 refcount_set(&iobm->refcnt, 1); in ksys_ioperm()
[all …]
Dprocess.c386 static void tss_copy_io_bitmap(struct tss_struct *tss, struct io_bitmap *iobm) in tss_copy_io_bitmap() argument
396 memcpy(tss->io_bitmap.bitmap, iobm->bitmap, in tss_copy_io_bitmap()
397 max(tss->io_bitmap.prev_max, iobm->max)); in tss_copy_io_bitmap()
403 tss->io_bitmap.prev_max = iobm->max; in tss_copy_io_bitmap()
404 tss->io_bitmap.prev_sequence = iobm->sequence; in tss_copy_io_bitmap()
424 struct io_bitmap *iobm = t->io_bitmap; in native_tss_update_io_bitmap() local
430 if (tss->io_bitmap.prev_sequence != iobm->sequence) in native_tss_update_io_bitmap()
431 tss_copy_io_bitmap(tss, iobm); in native_tss_update_io_bitmap()
Dptrace.c676 struct io_bitmap *iobm = target->thread.io_bitmap; in ioperm_active() local
678 return iobm ? DIV_ROUND_UP(iobm->max, regset->size) : 0; in ioperm_active()
685 struct io_bitmap *iobm = target->thread.io_bitmap; in ioperm_get() local
687 if (!iobm) in ioperm_get()
690 return membuf_write(&to, iobm->bitmap, IO_BITMAP_BYTES); in ioperm_get()