OSDev.org
https://forum.osdev.org/

How do you implement bread() in your kernel?
https://forum.osdev.org/viewtopic.php?f=15&t=32074
Page 1 of 1

Author:  irvanherz [ Thu Jun 01, 2017 9:30 am ]
Post subject:  How do you implement bread() in your kernel?

Hi, all...
I have read plenty books about VFS. Comparing designs from Linux and UNIX-likes.
Linux's bread() will end up in disk driver's request() handler. But a book said that in some UNIX-like kernels, it will calls bread() from vnode/inode (struct inode_operations) who represented for specific disk devices.

Actually, I like simpler second method. But in doubt, I want to clarify what I was said from the book.
Is it right that some UNIX-likes using bread() inode/vnode operation? If so, why there are strategy() operation inside it too?

Thanks before..

Author:  Solar [ Tue Jun 06, 2017 5:47 am ]
Post subject:  Re: How do you implement bread() in your kernel?

Code:
loaf * bread()
{
     return malloc( sizeof( loaf ) );
}


Sorry, couldn't resist.

Author:  eryjus [ Tue Jun 06, 2017 8:05 am ]
Post subject:  Re: How do you implement bread() in your kernel?

Solar wrote:
Code:
loaf * bread()
{
     return malloc( sizeof( loaf ) );
}


Sorry, couldn't resist.


I'm so glad I wasn't the only one.... :lol:

Author:  Schol-R-LEA [ Wed Jun 07, 2017 11:29 am ]
Post subject:  Re: How do you implement bread() in your kernel?

First, take 4 cups of whole wheat flour, a cup and a half of milk, and two eggs...

Author:  irvanherz [ Tue Jun 13, 2017 11:28 am ]
Post subject:  Re: How do you implement bread() in your kernel?

OK, how about block_read()?. It was not so delicious as bread() taste like..

Author:  stevewoods1986 [ Sun Aug 13, 2017 2:52 pm ]
Post subject:  Re: How do you implement bread() in your kernel?

I can't help it either. You need wheat, a few other ingredients and yeast 8) search C manuals... that might help

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/