Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 03-07-2006, 10:22 PM   #1
LQ Newbie
Registered: Mar 2006
Posts: 2

Rep: Reputation: 0
request_region(...) return code

I posted this to the Slackware distribution forum, but realize I should probably posted it here (I hope!).

I am running into problems using request_region(...). I am running Slackware 10.2 and gcc 3.3.6, and for all the world it looks like the code after the assignment to res is not working:
struct resource res;
res = request_region(kore_port, 3, "kore");
if (!res)
printk(KERN_ALERT "some message");
printk(KERN_ALERT "other message");
I don't see either message in the output, and I am seeing other KERN_ALERT messages before and after this. It is almost as if the prototype for the function doesn't match the actual function, and the return code is not on the stack ... I am a little rusty on C these days, so I can't really say that makes sense. Other than the messages, the code seems to be working, I can write to the port, etc.

I tried to find the source for the function underlying the macro request_region(...), but gave up after an hour (I am, indeed, a newbie). Any help would be appreciated.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
request_region return code BrooklynOutlier Slackware 0 03-06-2006 11:26 PM
dd return code barefootdoctor Linux - General 2 10-13-2005 01:54 PM
Wine failed with return code 137 whishkah Linux - Software 2 06-13-2005 04:46 AM
return value from shell script to c code? khucinx Programming 1 05-13-2004 04:43 PM
Return code from main() using gcc Meatwad Programming 13 01-27-2004 07:36 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration