ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: Kill function in modules

To:
Subject: Re: [ts-7000] Re: Kill function in modules
From: Jim Jackson <>
Date: Thu, 17 Apr 2008 22:35:30 +0100 (BST)


On Thu, 17 Apr 2008, charliem_1216 wrote:
>> On Wed, 16 Apr 2008, jo_xavier18 wrote:
>>
>>> I'm trying to use function kill() in my module, but it does no exist.
>>> I 'd included signal.h, but the function kill() no exists in signal.h.
>>
>> You misunderstand what signal.h is. It is C source and contains functions
>> prototypes and any type definitions, and preprocessor defines needed.
>>
>> The function kill certainly does exist and is in the basic C library.
>
> But the OP is writing a kernel module, and no library functions are
> available kernel space.

ooops! flushes with embarrassment.

> I think you want to include <linux/sched.h> in your module, then use
> kill_pid() or kill_pid_info_as_uid().  (That's on 2.6 ... 2.4 should
> be similar).
>
> This really isn't TS board specific; you will probably get better help
> on a general linux list like kernel-newbies.
>
> Regards, ........ Charlie
>
>
>>
>>> My kernel version is 2.4.26-ts11 and my board is ts7400.
>>
>> Perhaps you could indicate why you "think" it doesn't exist.
>>
>> Jim
>>
>
>
>

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU