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.
österreich wetten die ich immer gewinne (https://www.alyunaniya.com/top-100-buchmacher)
online
spelen en virtuele beste wedden sites apple pay (Justin)
ios wedden sport spelletjes
Check out my website … basketball-wetten.com
beste naar Sports wedden Platformen (https://basketball-Wetten.Com) top 50
cheltenham races free bets
my page … windsor racing results yesterday live; Reyna,
golf Roland Garros E-Wedden (Basketball-Wetten.Com) trucs 2026
weddenschappen nederland
Here is my web site … virtuele wedden paarden
betting on horse racing
Here is my blog post; free grand national bet no
deposit (Renate)
beste eerlijke wedden platformen sport
beste online web wedden bookmaker [Karina] op sport
live wedden trucs
Feel free to visit my web blog … basketball-wetten.com
apuestas online peru
my blog basketball-wetten.com
que es handicap en tipster Apuestas combinadas (basketball-wetten.com) deportivas
chile las mejores casas de apuestas peru
como funciona el sistema casa de apuestas, https://fr-betting.com/,
apuestas
que significa stake 1 en apuestas (Shannan) sistema
bonus scommesse senza Deposito immediato online pronostici
scommesse sportive Lottomatica – It-betting.com – pronostici italia spagna
scommesse italia spagna
Also visit my homepage; Basketball-wetten.com
horse racing place only betting
Here is my webpage – Southwell Races Today Results
ofertas casa de apuestas baloncesto [es-betting.com] apuestas
casino mania siti scommesse italia aams (it-betting.com)
place pick all bet horse saturday wolverhampton racing results
bukmacher system remisowy
Here is my blog :: bukmacherjakie.com
nubank site de aposta com cartao de Credito de
apostas
dnp bukmacher
Also visit my web-site … polska argentyna u17 wynik (basketball-wetten.Com)
O cara que parou de chasing em março só joga Ninja vs Samurai no domingo. Diz que paga melhor. A gente riu, os dados concordam.
tributar over Under Apuestas deportivas
apps que es un stake 20 en apuestas (Shella) mundial
Casas apuestas bono sin deposito argentina holanda
wettbüro lichtenberg
Here is my web page: wett Tipps dfb pokal
legale wettanbieter deutschland
My blog; wettanalysen und wettprognosen
sportwetten anbieter deutschland
Also visit my webpage wetten basketball em, basketball-wetten.com,
Beste wettanbieter (Bbvv.mortensen.cat) ohne lugas limit
buchmacher österreich
my page – was heißt hc 0 7 5 2 bei basketball wetten
buchmacher lizenz
My blog; basketball live wetten Strategie
sportwetten ohne lugas
My web page – Deutschland Ungarn Wettquoten
live Pferderennen Dortmund wetten im stadion
wettbüro dortmund
Feel free to surf to my web-site: Tipps sportwetten
sportwetten beste app
My homepage; sportwett anbieter
wetten auf deutschland
My blog post … sportwetten Selbst anbieten
schweiz wetten
Feel free to visit my homepage: sportwetten tipps Prognosen
beste sportwetten anbieter deutschland
Feel free to surf to my web blog; wett Tipps heute Net
beste wettquoten
my web site: die besten online wettanbieter (https://Www.localhost-it.no/)
sportwetten wetten Basketball Tipps profi
sportwetten bonus umsetzen
My blog post: eurovision wettquoten
different bets on horse racing
My page … https://horse-betting.com/
bet online horse racing
Have a look at my web site: Cheltenham Festival 2026 Tips And Betting Guide
gratiswette sportwetten
My web site – wettanbieter Lizenz
apostar por que
my web site … metodo ganhar apostas desportivas, Marisa,