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
0
votes
0 answers

Trouble adding two ints to Minix proc data structure

I'm trying to add two integers to the Minix proc data structure in /usr/src/kernel/proc.h. The documentation says you must add entries to sconst.h as well to accommodate this, but I cannot figure out how to update sconst.h. Adding the two ints…
calmond
  • 189
  • 7
0
votes
0 answers

MINIX: Changing the chmod system call, printing acces rights

As part of a homework on minix operating system(version 3.2.1) I'm tasked with changing the chmod system call in the way that it prints the name and access rights right after I call it. For example the following command : chmod 755 file.c should…
Dimitris Delis
  • 55
  • 1
  • 13
0
votes
1 answer

minix3 filesystem implementation

I was just going through section 5.3 of Operating Systems: Design and Implementation: "File system implementation", and I have a doubt regarding disk management using linked lists (table implementation). The authors mention that using the table…
user277465
0
votes
1 answer

What is the best way to retrieve states from a state controller?

For a school project, the goal is to make a real-time system that exists out of 3 processes, lets say "process calculate" and "process execute". On top of these 2 processes, there is a state holder, lets call it "process StateCommunication", of the…
Kyle
  • 107
  • 7
0
votes
0 answers

How process is born in MINIX 3?

I am trying to modify scheduling in minix 3. Till now I am able locate: -> boot image in kernel/table.c -> process table in kernel/proc.h -> priv table in kernel/priv.h -> initial process table entries (boot image) in kernel/main.c -> shed(),…
snehm
  • 223
  • 3
  • 13
0
votes
1 answer

Minix scheduler - how to check system time?

I'm trying to modify schedule.c file ( /usr/src/minix/servers/sched/schedule.c ) in Minix 3. For every process that used up it's quantum, I want to see how much sys time passed. So I want to add following lines to do_noquantum(): ... rmp =…
Jecke
  • 239
  • 2
  • 13
0
votes
0 answers

Minix 3.3 error code 12 file too big

I need to get to /usr/src/kernel/system.c file, but when I try to open and modify it I get a message: File too big. Error code 12. How can I handle it?
3va
  • 85
  • 7
0
votes
1 answer

Minix 3.2.1 Makefile issue

I'm trying to run make with the below Makefile and I get the following error Makefile:2: *** missing separator. Stop.. This Makefile is the original file from Minix 3.2.1. I haven't done any changes. I check from the tabs problem. Can someone help…
ppapadop
  • 37
  • 5
0
votes
0 answers

system call searching for a file(C, minix)

I am working on a project on Minix 3.2.1 I need to create a new system call (on the vfs server) which will get a filename as a parameter(filename only! NOT path) and print the file's inode number. how to implement the code that's relative on the…
0
votes
1 answer

clang linking error: undefined reference to 'qsort'

Despite the fact that i included '#include ' to my code, when i use built-in qsort function, clang gives me the error: schedule.o: In function `chooseTicket': schedule.c:(.text+0x16d): undefined reference to `qsort' clang: error: linker command…
ffguven
  • 187
  • 11
0
votes
0 answers

Linking error in minix system call that changes sched process' state

I need to change a sched process' state by creating and calling a system call. And that's my code for do_settickets system call. #include #include "pm.h" #include "../sched/sched.h" #include "../sched/schedproc.h" #include…
ffguven
  • 187
  • 11
0
votes
1 answer

Minix - Copying Data from Address of System Call back to Calling Process

So, I need to use the MINIX kernel call sys_vircopy to copy a filled array (of int) from a system call I am writing, back to the calling process. The current setup is as follows, in the calling process (have omitted anything unimportant): int…
transiti0nary
  • 493
  • 6
  • 25
0
votes
1 answer

Creating a man page in Minix 3?

I'm unsure on how to go about creating a new man page in the Minix 3. Groff and troff aren't available in Minix, and after researching I can't find any alternative. How do I go about creating a new man page in Minix?
Kylecrocodyle
  • 489
  • 1
  • 3
  • 9
0
votes
1 answer

Minix keyboard Driver

I'm trying to change the keyboard driver in minix, my idea is store in a file all the characters that the used introduced in the keyboard.I declare a global FILE * fp and insert this piece of code in /usr/src/drivers/tty/keyboard.c while (icount >…
0
votes
1 answer

MINIX compiling .c files error

Im working on minix 3.2.1 . I just put a : printf("hi"); command in do_mkdir -> open.c ,in many lines , so when i use mkdir 'name' command in shell it prints hi. I put this printf inside : mined /usr/src/servers/vfs/open.c in do_mkdir function …