Board.KolibriOS.org

Official KolibriOS board
It is currently Sat Jan 25, 2020 1:19 pm

All times are UTC+03:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Jan 10, 2020 11:43 am 
Offline
User avatar

Joined: Mon Aug 26, 2019 10:14 pm
Posts: 16
Functions like mmap or MapViewOfFile?

If no, should this feature be expected in future?

Thanks.

_________________
Если программа не юзабельна под ХРюшей с 128МБ памяти и IDE винчестером, она отстой


Top
   
PostPosted: Fri Jan 10, 2020 12:36 pm 
Offline
Kernel Developer
User avatar

Joined: Fri Aug 14, 2009 1:46 am
Posts: 1380
Boppan
mmap() is a POSIX-specific tool used to spread the mad concept "everything is a file" to any non-file object.

This feature is not implemented in KolibriOS, neither ported with Linux libraries yet.

You better use Shared Memory interface to transfer data to/from your processes


Top
   
PostPosted: Fri Jan 10, 2020 4:30 pm 
Offline
User avatar

Joined: Mon Aug 26, 2019 10:14 pm
Posts: 16
Yes, but I wanna use memory mapped files to read large files.

My english is terrible, so...

После того, как mmap открывает файл, ОС подгружает его по мере доступа к нему, и выгружает его уже неиспользуемые участки (page swapping). Так можно читать большие файлы не тратя слишком много оперативной памяти.

_________________
Если программа не юзабельна под ХРюшей с 128МБ памяти и IDE винчестером, она отстой


Top
   
PostPosted: Sun Jan 12, 2020 1:37 am 
Offline
Kernel Developer
User avatar

Joined: Fri Aug 14, 2009 1:46 am
Posts: 1380
Boppan
Very interesting idea.
There is no page swapping in Kolibri (nobody needed it so far), but you can try to do-it-yourself as a really useful exercise


Top
   
PostPosted: Mon Jan 13, 2020 3:57 pm 
Offline
User avatar

Joined: Mon Aug 26, 2019 10:14 pm
Posts: 16
Got it, thanks.

_________________
Если программа не юзабельна под ХРюшей с 128МБ памяти и IDE винчестером, она отстой


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited