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
1
vote
0 answers

Calling minix _syscall() from within a function

I have been running into a very strange problem in minix lately with regards to a system call I wrote. Basically the code runs fine from within a main() function, and the call does what it should. However, if I put the code in a function and call…
1
vote
1 answer

Minix - System call not correctly calling function?

I need to create a system call in Minix for a homework assignment. I've gotten most of the set up finished, but for some reason the function that the system call is actually calling isn't being found correctly. (Pardon any bad wording choices, I'm…
404 Not Found
  • 3,635
  • 2
  • 28
  • 34
1
vote
1 answer

How to get the process name from server layer using PID

I would like to be able to use the name of the process in servers/sched/schedule.c however schedproc structure doesn't contain the name variable. I thought about using endpoint_lookup() function to get the pointer to the proc structure but since it…
1
vote
2 answers

Porting JVM to MINIX

As you may see from the title, for some reason I need to make running .class files on Minix possible (a compiler is not necessary). So could somebody point me in any direction, suggest some literature or give some advice? Generally, how would you…
user1902247
  • 123
  • 12
1
vote
1 answer

instructions found in _sendrec.s

I stumbled upon on the following instructions found in src/lib/i386/rts/_sendrec.s At the very beginning, the following statements are written out. SEND = 1 RECEIVE = 2 BOTH = 3 SYSVEC = 33 SRCDEST = 8 MESSAGE = 12 How do I interpret the above…
comp101
  • 21
  • 2
1
vote
0 answers

Minix kernel process yield (how to invoke a software interrupt)

I am trying to find code in Minix source that kernel processes can call to yield, causing software interrupt and subsequent task switch.
KSletmoe
  • 977
  • 9
  • 23
1
vote
1 answer

Minix print from kernel to console

I am trying to change the scheduling in Minix and want to print from /kernel/proc.c to standard output. Printf cannot be used inside kernel. I am using Minix 3.1.2. I want to add code to sched() function in order to print messages to console. How…
user985409
  • 1,355
  • 3
  • 9
  • 18
0
votes
2 answers

MINIX Internal Fragmentation 2

I am in the middle of writing some software in C that recursively lists all files in a given directory and now I need to work out the internal fragmentation. I have spent a long time researching this and have found out that the internal…
Charlie
  • 1,308
  • 5
  • 14
  • 24
0
votes
1 answer

Bad syntax include in Minix

I am developing a project for Minix in C Language and I have a folder to put the drivers of the devices called core. In the main.c I did an include of the vbe.h that is inside this folder and the make give me allways an error of bad syntax. I tried…
André Freitas
  • 1,070
  • 1
  • 10
  • 13
0
votes
0 answers

Why can't I delete this file in the minix file system?

This would be the function I used void put_partition_logical_block(int block_num) { // 写入逻辑块前要加上引导块的大小 fseek(fd, (block_num + 1) * LOGICAL_BLOCK_SIZE, SEEK_SET); fwrite(logical_block, LOGICAL_BLOCK_SIZE, 1, fd); fflush(fd); } void…
0
votes
1 answer

minix; after i try to use mined / shutdown i get the error

error screenshot I just installed Minix and tried to use mined a shutdown function. I got the error 12. I tried to google it, but I couldn't find anything. How can I change shutdown's source code? p.s. I also tried to cd /shutdown but it didn't…
0
votes
1 answer

Why is the size of partitions 64M in Minix filesystem?

I have read Introduction to the Minix File System from Wikipedia. I don't understand this sentence, "but since the Minix fs uses unsigned shorts for block pointers, it is limited to 64M partitions". What's the relationship between the data structure…
Misao
  • 1
0
votes
0 answers

Is there a way to detect there is no battery on the device in js?

I have a minix ks controller which is working from plug and doesn't have a battery. However I'm getting battery data from JS navigator object: This is what I'm getting from getBattery method: But I need to detect there is no battery in the device…
Olga
  • 119
  • 1
  • 1
  • 12
0
votes
1 answer

Printf statement is being ignored if a while loop succeeds it

Here is my code: int main(int arg, char *argv[]){ short pid; if((pid = fork()) == 0){ printf("Child is running\n"); while(1) ; } else { printf("Parent is running\n"); } } After running this, only "Parent is…
Harry Stout
  • 145
  • 1
  • 8
0
votes
1 answer

Where are shell commands executed inside the unix (Minix) source code?

I'm currently learning about operating system kernels and how they are built from the source code (I'm using Minix). I'm trying to figure out where the shell commands (ls for example) get executed. I know where to locate the ls.c file (src/bin/ls)…
Cyberboy1551
  • 345
  • 1
  • 13