kernel: Set the shmem->inode field in query_shared_memory
This commit is contained in:
parent
f8e86b3b01
commit
b447c1a261
@ -138,6 +138,8 @@ namespace TmpFS
|
||||
{
|
||||
u64 shmid = TRY(SharedMemory::create(m_data_buffer.data() + offset, offset, count));
|
||||
m_shmid = shmid;
|
||||
auto* shm = g_shared_memory_map.try_get_ref(shmid);
|
||||
shm->inode = SharedPtr<VFS::Inode> { (VFS::Inode*)this };
|
||||
return shmid;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user