Re: end_request() deprecated, which one should be used ?

2008-09-01 Thread Jens Axboe
On Mon, Sep 01 2008, Thomas Petazzoni wrote: > Hi, > > The comment at the top of end_request() says: > > * This is a remnant of how older block drivers handled IO completions. > * Modern drivers typically end IO on the full request in one go, unless > * they have a residual value t

service oriented scheduler

2008-09-01 Thread Raz
hello I will be greatful for any criticism. In short, i offload a processor and assign it a service. raz x Service Oriented Scheduler MSC Concluding Assignment Table of Content 1. Document Content ..

RE: About sending signals from kernel space to user space

2008-09-01 Thread Raz
i would suggest you schedule a tasklet. doing staff like from ISR , from my opinion is too risky and bug prone. About sending signals from kernel space to user space mayank rana Mon, 01 Sep 2008 07:28:33 -0700 Hi All, I am trying to send some information to User Space process from Kernel Module

prepare_to_wait()

2008-09-01 Thread Venky Shankar
Hi, Many times i have come across a code which uses prepare_to_wait() as follows : >>> up(&semaphore); --- --- --- prepare_to_wait(queue, &wait, TASK_INTERRUPTIBLE); if(condition()) schedule(); finish_wait(queue, &wait); --- --- --- down_interruptible(&semaphore); <<< Now this is what i am i

Re: How to enter v86 and execute my program?

2008-09-01 Thread Peter Teoh
sorry, i am beginning to learn something new. never knew there is such a system call vm86(). (man vm86 to read more), and the implementation is in linux kernel's vm86.c, which runs 16bit under 32bit protected mode task. and from the man pages of vm86, dosemu is using this API. So I think you

Re: How to enter v86 and execute my program?

2008-09-01 Thread Peter Teoh
technically, 16bit cannot access > 16bit of RAM for i368 CPU. so the answer is technically impossible, CMIW. and linux kernel only runs on 32bit and 64bit, but u want to execute 16bit insn? eg, using QEMU to run 16 bit application? So i think your questions sounds like: how to execute insn

end_request() deprecated, which one should be used ?

2008-09-01 Thread Thomas Petazzoni
Hi, The comment at the top of end_request() says: * This is a remnant of how older block drivers handled IO completions. * Modern drivers typically end IO on the full request in one go, unless * they have a residual value to account for. For that case this function * isn't rea

About sending signals from kernel space to user space

2008-09-01 Thread mayank rana
Hi All,   I am trying to send some information to User Space process from Kernel Module/Driver. How can I do that in context of interrupt Service Routine? I found that using kill_async, it is possible to send SIGIO signal and handling that in User . Is there anyother way to achieve this ?     Re

Re: Spawning and managing userprocess from kernel module

2008-09-01 Thread Thomas Petazzoni
Le Mon, 01 Sep 2008 10:40:01 +0200, DEGREMONT Aurelien <[EMAIL PROTECTED]> a écrit : > Yes, yes, I know this will be a lot simpler in user-space, but, if i > trying to do this in kernel space, it is not because I'm masochist, > but because I need it. If this is not possible or, it is really too

Re: How to enter v86 and execute my program?

2008-09-01 Thread Thomas Petazzoni
Le Mon, 1 Sep 2008 17:56:13 +0800, ZelluX <[EMAIL PROTECTED]> a écrit : > I want to enter v86 mode and switch to VGA Mode 13h to draw some > pictures. Now i can enter v86 mode with IRET instruction setting VM > flag in the eflags register. > > But since v86 mode supports only 16-bit address, how

How to enter v86 and execute my program?

2008-09-01 Thread ZelluX
Hi, all I want to enter v86 mode and switch to VGA Mode 13h to draw some pictures. Now i can enter v86 mode with IRET instruction setting VM flag in the eflags register. But since v86 mode supports only 16-bit address, how can i let the cpu executes instructions beyond 0x10 which includes set

Re: Spawning and managing userprocess from kernel module

2008-09-01 Thread DEGREMONT Aurelien
Yes, yes, I know this will be a lot simpler in user-space, but, if i trying to do this in kernel space, it is not because I'm masochist, but because I need it. If this is not possible or, it is really too difficult I will try to do otherwise, but I want to be sure before changing my plans. Sa

Re: GPS Application on Linux

2008-09-01 Thread Thomas Petazzoni
Le Fri, 29 Aug 2008 11:09:14 +0530 (IST), mayank rana <[EMAIL PROTECTED]> a écrit : > 1. Is there any Framework available in Linux to develop GPS > Application No specific framework for GPS application. You can use whatever framework/library you want to develop your application. > ? 2. Any stand

Re: Spawning and managing userprocess from kernel module

2008-09-01 Thread Thomas Petazzoni
Hi Aurélien, (Hope your Canada trip after OLS was nice !) Le Fri, 29 Aug 2008 17:54:52 +0200, DEGREMONT Aurelien <[EMAIL PROTECTED]> a écrit : > 3 - Is the only solution to code a userspace daemon for doing that, > and just use a mechanism to communicate between this daemon and the > kernel? T