For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > July 2007 > which library is required for the function i_disable(1)......??









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author which library is required for the function i_disable(1)......??
monty

2007-07-25, 4:19 am

Hi All,

There is a small problem i am facing. I am compiling a C++ program on
AIX 5.3. I am using a function i_disable(1), which is giving me error
at linking time as undefined symbole.

Please tell me which lib I hav to bring in the path to resolve the
error.

Thanks ...

David Schwartz

2007-07-25, 4:19 am

On Jul 25, 12:31 am, monty <manishgandh...@gmail.com> wrote:
> Hi All,
>
> There is a small problem i am facing. I am compiling a C++ program on
> AIX 5.3. I am using a function i_disable(1), which is giving me error
> at linking time as undefined symbole.
>
> Please tell me which lib I hav to bring in the path to resolve the
> error.
>
> Thanks ...


Are you writing a device driver or kernel code of some kind? The
'i_disable' function is a kernel function that can only be called from
kernel space. Suppressing interrupts from user space would be
disastrous.

DS

monty

2007-07-25, 8:06 am

On Jul 25, 1:09 pm, David Schwartz <dav...@webmaster.com> wrote:
> On Jul 25, 12:31 am, monty <manishgandh...@gmail.com> wrote:
>
>
>
>
>
> Are you writing a device driver or kernel code of some kind? The
> 'i_disable' function is a kernel function that can only be called from
> kernel space. Suppressing interrupts from user space would be
> disastrous.
>
> DS


I am just giving a try to the function to analyze the behaviour. Is it
really dangerous to use??

Rainer Temme

2007-07-25, 8:06 am

monty wrote:

[color=darkred]
> I am just giving a try to the function to analyze the behaviour. Is it
> really dangerous to use??


Depends on your definition of "dangerous" ... but if you could call
this function from userspace, you could freeze the system easily.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com