Skip to contentSkip to conversation

Processes attached to shared memory

DISCUSSION W. Michael Petullo 1 participant 1 message Feb 22, 2016

lore
Share & tools
lore
#0 lore raw

Given a struct shmid_kernel, is it possible to find each process/task_struct which is attached to the shared memory?

I have been trying to use find_get_pages(shmid->shm_file->f_mapping, ...) along with rmap_walk(...). But what I have come up with seems a little convoluted and also triggers "BUG: scheduling while atomic" errors.

Signature · 3 lines
Mike

:wq