Questions tagged [minix]

is a Unix-like computer operating system based on a microkernel architecture created by Andrew S. Tanenbaum for educational purposes.

MINIX is a Unix-like computer operating system based on a microkernel architecture created by Andrew S. Tanenbaum for educational purposes; MINIX also inspired the creation of the Linux kernel.

MINIX (from "mini-Unix") was first released in 1987, with its complete source code made available to universities for study in courses and research. It has been free and open source software since it was re-licensed under the BSD license in April 2000.

Sizeable subset of Minix source code is also published in the book by its creator Design and Implementation of Operating Systems.

230 questions
2
votes
1 answer

How to get inode structure when knowing the "inode number"

I read the API of minix but still confused and failed to get the 'real' inode structure just with the inode number We could only get "inode number" with "stat" structure, right? but after getting that number, is there any way to get corresponding…
2
votes
2 answers

Is there any reason this c recursive function generates this pagefault?

So I want to write recursive syscall in c which gets all descendands from a process (kids, grandkids, ..). System which I'm using is Minix 3.2.1, but I don't think it should be much different from most UNIX systems. However my function throws very…
Johnny
  • 23
  • 4
2
votes
1 answer

Modifying Minix 3 Scheduler

I recently purchased this book to get a better understanding of how operating systems work. I am on the second chapter and I'm stuck on this problem and my OS does not boot with code I have added. The code below was added to proc.c at the start of…
Warfujjii
  • 55
  • 6
2
votes
1 answer

Debugging MINIX OS under VirtualBox

How to debug the MINIX kernel under the VirtualBox running on windows, ubuntu, or OSX? I am using MINIX 3.2.1 and Eclipse CPP.
Walid Hanafy
  • 1,429
  • 2
  • 14
  • 26
2
votes
2 answers

What does sys_schedule() do in Minix 3.1.8?

I'm modifying a scheduler in Minix 3.1.8 and wondering what the system call sys_schedule() does in CPU. Could someone explain? sys_schedule.c PUBLIC int sys_schedule(endpoint_t proc_ep, unsigned priority, unsigned quantum) { message m; …
Hiroaki Machida
  • 1,060
  • 2
  • 12
  • 23
2
votes
1 answer

Can't manage to count the right number of times I call a function

I once managed to return the function, and with that when I run the test it passed I Have this function on utils.c: int (util_sys_inb)(int port, uint8_t *value) { uint32_t val; if(sys_inb(port, &val) != OK) return 1; …
2
votes
1 answer

How to send messages in PM server Minix

So I'm trying to create a new system call on PM server. My question is, how can I send some kind of message to function. in IPC server all I had to do is add my system call to the list, because all functions there were defined as (*func)(message…
Blomex
  • 305
  • 2
  • 12
2
votes
2 answers

Vue.js Global Axios Calls

I am writing a project which uses so many Axios calls from different pages. Instead of using Axios calls multiple times, is it possible to write a single Axios call function and use it in each pages. For ex, define an "axiosCall" function once and…
dyte
  • 23
  • 1
  • 3
2
votes
0 answers

Storing data in the inode structure in Minix?

I need to modify inode.h in Minix to hold an attribute called "classification level." I cannot find anything specifically about storing a simple int (classification level is just going to range from 0 to 5) in the inode struct. I've found this link:…
2
votes
1 answer

Write a simple bootloader that reads user's name

I'm trying learn how operating systems work. This is an easy task I'm having a hard time solving: to write a simple bootloader that prompts the user for his name and prints a welcome message, like "hello, >>name<<" - after that, it does nothing. I'm…
Jytug
  • 1,072
  • 2
  • 11
  • 29
2
votes
1 answer

Read a null-terminated string from binary into variable using od in MINIX ash

Rather rookie question but I got stuck with it for a while: I have a problem to read and parse a string that is stored in hard drive at the address that I know ... I don't know the length of the string, only it's maximum length say n. It has been…
micsza
  • 789
  • 1
  • 9
  • 16
2
votes
1 answer

Minix: undefine dreference to __fts_open60

I'm trying to make a system call that will return the inode number of a file, and chose to use the FTS and FTSENT structures, since I found them while searching and they are also used in ls.c (of the usual ls program, which with -i gives us the…
user3079666
  • 1,159
  • 10
  • 23
2
votes
1 answer

MINIX: sys_call: ipc mask denied SENDREC from 1 to 1

In MINIX 3.2.1, I want to create a new system call in VFS server which will be given a filename as a parameter and will print this certain file's inode number. So in order to retrieve the inode of the file by its name I want to use the default…
thomas_p
  • 97
  • 1
  • 14
2
votes
1 answer

How compile with in Minix?

Currently, I am studying Minix and I am doing a system based on threads and do not know how to compile my program. For example: Mthreads.c #include #include #include void hola(int y){ printf("Hola…
2
votes
0 answers

IPC with MINIX3

I'm trying to compare Inter Process Communication in Minix3 and Lubuntu, using c++. Is that possible considering different architectures and libraries needed for IPC, can someone give some tips how to achieve this? Thanks!
1 2
3
15 16