Results 1 to 7 of 7
Hi all,
I'm new to Linux. I compiled and installed the linux kernel version 2.6.27.39. I'm trying to limit the number of bytes that can be read/written for the read/write ...
- 11-25-2009 #1Just Joined!
- Join Date
- Nov 2009
- Posts
- 16
system call to change read/write byte capacity
Hi all,
I'm new to Linux. I compiled and installed the linux kernel version 2.6.27.39. I'm trying to limit the number of bytes that can be read/written for the read/write system calls. I'm trying to write a system call to do this. I found many guides online on how to write a system call, but I have no idea how to proceed with the above.
The functionality should also exist for fork()ed child processes.
Any ideas on where to start would be helpful.
Thanks!
- 11-25-2009 #2Just Joined!
- Join Date
- Nov 2008
- Location
- Virginia, USA
- Posts
- 18
I have no idea. But, I'm pretty sure this doens't belong in the Linux Newbie section. lol
- 11-25-2009 #3Just Joined!
- Join Date
- Nov 2009
- Posts
- 16
well where do i post it then?
- 11-25-2009 #4
- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 11-25-2009 #5Just Joined!
- Join Date
- Nov 2009
- Posts
- 16
Hi Lakshmipathi,
I will try to elaborate. I'm trying to implement a system call to set a maximum limit on the number of bytes that can be read or written for the read and write system calls on the caller. forked processes should inherit the limit of their parent.
Does that clear up things a bit? I'm sorry, but I'm also trying to get my head around this as I'm new to Linux myself.
- 11-25-2009 #6
In case ,if you trying to set a limit (say read can return max. 512 bytes) anything above (1KB) that will produce an errror message. oops ! sorry - I don't have clue about that.
May be something to do with kernel file tables or process tables...may be wait for some LF member to answer your questions else drop a mail to kernel developer/user mailing list.- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 11-25-2009 #7Just Joined!
- Join Date
- Nov 2008
- Location
- Virginia, USA
- Posts
- 18


Reply With Quote
