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.
mejor Casino online blackjack mayores
de edad
online sports Betting bonus legal uk
casino sin dinero real
Feel free to surf to my web page – casinos en bilbao españa
usa free spins no money deposit, forms of gambling in canada and new khelo 24 bet online
casino – Jenni, sites uk no deposit bonus, or best no deposit
casinos aus
apuestas galgos online campeon de liga
sportsbooks reviews
Also visit my site: Non Gamstop Sports Betting
spiludbydere med malta licens
Review my homepage :: bedste odds tour de france (Mikayla)
casas de apuestas real madrid athletic de españa
europei scommesse
Here is my web-site … Bookmaker Italiani
legislacion casas de Nba foro Apuestas españa
top casino in canada for how to get real money for free (Inge) money,
cash online poker canada and fun casino australia, or european roulette layout usa
Apuestas méxico beisbol
depositar 5 euros casino torrelodones [Carmelo]
casino coruña Campamentos rincon de pepe
sa
kombiwette berechnen
Visit my website: wetten basketball Bbl
100 euro startguthaben ohne einzahlung
Here is my blog Top Echtgeld Casinos – http://Oldmaninthebackofthesanctuary.Com/Bonusprogramme-Speziell-Fur-Paysafecard-Nutzer-Im-Test/ –
casino weinheim
Look at my blog post :: freespins Aktuell
maquinas para casinos en españa
my web site … nuevo casino cadreita
casinos in münchen
my webpage :: online casino mit niedrigem einsatz ab 50 cent
Mini Casino los cristianos croupier
ruleta
app Ganador champions league apuestas (avmontmar.Es) deportivas
colombia
høje spille odds motorsport (Zella)
tips
danske spil forhandler frederikshavn
Look into my page – Odds På Cykling
casa de Comparador Bonos Apuestas Deportivas (https://Avcc.Es/) nfl
casas de apuestas ingreso minimo america
apuestas deportivas baloncesto (http://albaramirezp.es/2026/07/01/los-datos-son-el-futuro-de-Las-Apuestas-en-f1/)
online opiniones
casa mejor sitio de apuestas online apuestas online
casino manga del mar menor
My homepage: Top Casinos EspañA
juegos de casino blackjack online
Also visit my blog post: casinos con slots
qué significa Apuestas Faciles de Ganar
7 trafień w keno
Feel free to surf to my web blog … 150 euro Za rejestrację kasyno
20 free spinů Casino 2500 kč Za Registraci první
vklad
casinos crypto españa
My homepage; juegos de casino top (https://Www.filigranapsicologia.com/2026/02/17/an-Insight-into-player-preferences-for-non-gamstop-slots/)
sportodds idag
my web site: Boxning Speltips
spel Gratis free bet utan insättning svensk licens trustly
snai scommesse pronostici oggi online
bookmakers euro 2026 Scommesse italia croazia
que es tipster en apuestas por internet Mexico
all star games sports best betting shops (http://www.celestialcaringent.com/how-to-bet-early-in-the-Mlb-season/)
cheltenham festival betting tips
Also visit my homepage :: what does sp mean in horse betting
online nové casino bonus za dočasnou registraci 2026 [Archie] Brno free spiny
windsor races today results
Review my blog post :: horse betting trifecta box
laske vedonlyöntivoitto
Here is my website vedonlyönti zimpler suomi
I just couldn’t leave your website before suggesting that I really enjoyed the usual information an individual supply on your visitors? Is gonna be back often in order to investigate cross-check new posts
apuestas Sitio De Apuestas De FúTbol deportes online
betting på nettet
Visit my web blog: live resultater Sport
bookmaker bonus
Also visit my homepage: odds utan Spelpaus swish
super bowl basketball spieler wetten deutschland
empresas de apuestas españa mundial (https://www.calculem.es/) deportivas en peru
sikre bettingsider
my web-site – bedste spil app (https://chefbrianmiami.com/)