Good Night,
First of all, what is VFS? VFS means Virtual File System. It is a layer that exists in a lot of OS and in Minix too, this layer takes care of the communication with the File System. It is a Master’s thesis in Computer Science from Balázs Gerófi and the name is “Design and implementation of the MINIX Virtual File system“.
But why to communicate with VFS server? Or why to add something on it? If you want to some tasks you need to do a SYSCALL to it. But sometimes the VFS server don’t do what you want. So you must add and change it to do it.
How to do this?
Edit “/usr/src/include/minix/callnr.h”. After this line “#define GETPGRP 63″ add this:
[code lang=”c”]
#define TESTCALL 64
[/code]
Then you need to change the VFS server and add what you want to do when it is called. Edit “/usr/src/servers/vfs/table.c”. You should replace the line “no_sys, /* 64 = unused */” with:
[code lang=”c”]
do_TESTCALL, /* 64 = unused */
[/code]
What happens? The method do_TESTCALL will be called when a syscall with number 64 is done.
Change the “/usr/src/servers/vfs/proto.h”. Add this:
[code lang=”c”]
/* do_TESTCALL EXAMPLE */
_PROTOTYPE( int do_TESTCALL, (void) );
[/code]
Now you have to create the method in “/usr/src/servers/vfs/read.c” (I did in this file and it worked). Add this:
[code lang=”c”]
/*===========================================================================*
*Trabalho: do_ver_contig *
*===========================================================================*/
PUBLIC int do_TESTCALL() {
message m;
printf(“Number received %d”, m_in.fd);
}
[/code]
But how to execute? How this works? How to compile?
Acess “/usr/src/tools/” and execute:
$ make libraries
(This process can take a long time)
In “/usr/src/tools” execute:
$ make hdboot
Reboot.
How to test and see if it is working? Create in your “/root” a file with this:
[code lang=”c”]
#include
#include
#include
int main(int argc, char *argv[]) {
int fd = 2;
message m;
m.m1_i1 = fd;
printf(“Number: %d”, fd);
_syscall(FS, 64, &m);
}
[/code]
Compile it, execute it and done!
This file do a _syscall to FS saying to execute method 64 and send by message the number 2. So the do_TESTCALL receive the parameter and show it on screen. Yes it is simple, but it is just an example about how to work with VFS server.
Example of code changed/add to VFS server
Creating a system library in Minix.
Best Regards,
Matheus
PS: It is a silly example, but it just show how to add some method to VFS Server. Probably in the next days I will show a real example.
https://doselect.com/@79ae838ec2302a8711c590c66
live ruletka najlepsze
Here is my web site – nowe kasyno dogecoin (http://Www.Excellence-edition.com)
I am truly delighted tto glance at this bloog psts which contains lots oof helpful information, thanks for providiing these kinds oof data.
xnxx
cm scommesse migliori app pronostici scommesse
under over bonus Scommesse
https://pixelandbloom.com/author/jacksonvilletag6294/
scommesse italia quote scommesse coppa italia
höchster casino loyalitätsbonus mit ethereum und bonus
kasyna online olsztyn
Stop by my webpage – Najlepsze kasyno google pay
najlepsze Kasyno online z ekskluzywnym bonusem
z depozytem 30 zł
60 zł darmowe kasyno
My web site: Vat Na Gry Hazardowe
najlepsze Kasyno bonus Obrót 35x nowe
gry
https://www.codingame.com/profile/583f8403590c7e160f5647184cec16c60893567
https://www.criminalelement.com/members/aliciagreen/profile/
100% bonus powitalny kasyno
Check out my blog – ruletka na żywo z bonusem na start – Robby –
bono casino barcelona apuestas; Karolyn, puertollano
200% casino mega bonus bez depozytu
za depozyt kasyno
https://tealfeed.com/madelyn541_110586
http://www.biblesupport.com/user/810088-aliciagreen/
https://freeicons.io/profile/997299
https://joy.link/madelyn541
http://school2-aksay.org.ru/forum/member.php?action=profile&uid=415607
online casino ab 5 euro muchbetter
Here is my blog post :: beste Spielautomaten ethereum
in der spielothek geld gewinnen
Also visit my web site; Online casino mit 15 Euro startguthaben
beste casino angebote
my website – Freispiele nach anmeldung
5$ deposit casino canada, grand dusae casino no deposit bonus and free spins no deposit bonus codes canada, or uk slot sites not on gamstop
Here is my webpage; gambling in european countries (Jorja)
http://bbs.yunduost.com/home.php?mod=space&uid=162228&mobile=no
plinko um geld spielen
Feel free to visit my web-site kreditkarte casino seriös
casino begrüßungsbonus
Feel free to surf to my website – virtual sports um echtes geld
[Arlie]
bestes double exposure blackjack casino ohne 5 sekunden litecoin
10 € bonus nach registrierung casino slots rtp
über 97 prozent (https://wordpress-test.dipa.vn/index.php/2026/07/20/top-slots-neukundenbonus-in-osterreich-2026/)
casino cashback bonus auszahlung verifizierung
besten online roulette
Also visit my site: obst spielautomaten mit bonus
(laguiadeltxakoli.com)
online Casino 20 Einzahlen 60 Bekommen ab 2 euro einzahlung
Online Casino mit ethereum casino
mit vodafone bezahlen
https://www.ttsiwa.co/space-uid-15032.html
casino spiel mit würfel
Feel free to visit my web-site – roulette Schwarz Weiss
welche spielautomaten geben am meisten
Feel free to visit my homepage … cluster pays mit hoher auszahlung
https://www.siye.co.uk/viewuser.php?uid=256080
roulette handyrechnung auszahlung
Look into my blog; online casino 5 euro muchbetter
http://www.qingdaomop.com/space-uid-188437.html
http://www.qingdaomop.com/space-uid-188444.html
https://www.play56.net/?6116360
https://igli.me/madelyn541
online top 10 live Casino seiten, https://zweisterne-manufaktur.De, jackpot spiele
free spins shark freuky, best payout online casino usa and best online poker sites
for united kingdoms, or pokies online casino australia
Stop by my webpage; Review Casinos
spielautomaten mit bester rtp
Visit my web-site bonusarten online casino –
Patricia,
online live casino mit handyrechnung; Rodger, casino 3 euro
trustly
infinite blackjack echtgeld
Also visit my web blog online casino mit sms