Click here to Skip to main content

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy.
The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct and please don't post ads.

Technical discussions are welcome, but if you need specific help please use the programming forums.


 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralHow to use this structurel function and return struct fuction ah?memberVenkateshkishore4 Jan '13 - 3:28 
Hi ,
In this following code used for struct function also passed one parameter and one structure.why used this type of struct function and advantages.
struct clk *clk_get(struct device *dev, const char *id)
{
struct clk *clk;
 
list_for_each_entry(clk, &clocks, node) {
if (strcmp(id, clk->name) == 0)
return clk;
if (clk->function && (dev == clk->dev) && strcmp(id, clk->function) == 0)
return clk;
}
 
return ERR_PTR(-ENOENT);
}
EXPORT_SYMBOL(clk_get);  
thanks by,
venkat.
GeneralRe: How to use this structurel function and return struct fuction ah?memberDalek Dave4 Jan '13 - 3:37 
I think the answer is obvious, and could you see the bleeding obvious you would know what to do!
---------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
 
CCC Link[^]

GeneralRe: How to use this structurel function and return struct fuction ah?memberSimon_Whale4 Jan '13 - 3:38 
I would ask that question here
 
C-C++-MFC[^]
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch

GeneralRe: How to use this structurel function and return struct fuction ah?mvpOriginalGriff4 Jan '13 - 3:45 
Because it needs the Liquid Nitrogen interface enabled or the baconator goes out of calibration and then you would have to add CListCtrl to all modalities.
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.

GeneralRe: How to use this structurel function and return struct fuction ah?memberStewart Judson4 Jan '13 - 3:57 
OriginalGriff wrote:
baconator goes out of calibration

 
Surely one of the cross beams will go out of skew on the treadle!
GeneralRe: How to use this structurel function and return struct fuction ah?memberMike Mullikin4 Jan '13 - 4:33 
Ever since we re-imagined our paradigm to emphasize our core competencies the treadle didn't matter - so we downsized it.
Government is not reason; it is not eloquent; it is force. Like fire, it is a dangerous servant and a fearful master. ~ George Washington

GeneralRe: How to use this structurel function and return struct fuction ah?memberGary R. Wheeler4 Jan '13 - 10:01 
Is that treadle or treacle?
Software Zen: delete this;

GeneralRe: How to use this structurel function and return struct fuction ah?mvpOriginalGriff4 Jan '13 - 4:48 
Only if you forget the three-eighths Gripley. It stops the elliptical cam gradually sliding up the beam shaft and catching on the flange rebate, with disastrous results as you can no doubt imagine.
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.

GeneralRe: How to use this structurel function and return struct fuction ah?protectorPete O'Hanlon4 Jan '13 - 4:04 
Venkat, as you are new to the site, please let me guide you in a couple of things.
 
First of all, when you post a message, it's absolutely vital that you pick the right forum to ask your question in. This increases the chance that someone with the skills to solve your problem will see it and be willing to respond. If you are in doubt as to which forum, take a look at the descriptions at the top of the forums - you posted in the lounge, which is clearly marked as not allowing programming questions.
 
Next, when you post a code snippet, use the pre HTML tags to wrap your code. An easy way to do this is to highlight your code snippet and click the code option just above the Message textbox. This shows a popup which you can use to select the appropriate language for your post.
 
Please don't let the negative comments you've seen ruin your experience with the site. Once you've learned the "rules" of the site, it should become a friendlier place for you and I look forward to seeing your contributions in the future.

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos

CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

GeneralRe: How to use this structurel function and return struct fuction ah?memberThe Reincarnation4 Jan '13 - 4:12 
Thumbs Up | :thumbsup:
GeneralRe: How to use this structurel function and return struct fuction ah?memberMike Hankey4 Jan '13 - 4:24 
Nicely done, you make us proud!
VS2010/Atmel Studio 6.0 ToDo Manager Extension
Version 3.0 now available.
There is no place like 127.0.0.1

GeneralRe: How to use this structurel function and return struct fuction ah?memberBig Daddy Farang4 Jan '13 - 4:41 
Thank you.
BDF
 
I often make very large prints from unexposed film, and every one of them turns out to be a picture of myself as I once dreamed I would be.
-- BillWoodruff

GeneralRe: How to use this structurel function and return struct fuction ah?memberBillWoodruff4 Jan '13 - 9:12 
Thumbs Up | :thumbsup: Thumbs Up | :thumbsup: Thumbs Up | :thumbsup: Thumbs Up | :thumbsup: Thumbs Up | :thumbsup:
"So long as … social condemnation, which, in the face of civilization, artificially creates hells on earth, and complicates divine destiny, with human fatality … so long as three problems of the age: degradation of man by poverty; ruin of women by starvation; dwarfing of childhood by physical and spiritual night: are not solved: so long as social asphyxia shall be possible … so long as ignorance and misery remain on earth, books like this cannot be useless." Victor Hugo, "Les Misérables," 1862

GeneralRe: How to use this structurel function and return struct fuction ah?memberGary R. Wheeler4 Jan '13 - 10:03 
Thumbs Up | :thumbsup:
 
Thanks Pete.
Software Zen: delete this;

GeneralRe: How to use this structurel function and return struct fuction ah?memberwizardzz4 Jan '13 - 4:42 
This remains in the Lounge, yet my post from yesterday gets removed. D'Oh! | :doh:
GeneralRe: How to use this structurel function and return struct fuction ah?memberdjj554 Jan '13 - 4:47 
We know you.
GeneralRe: How to use this structurel function and return struct fuction ah?memberwizardzz4 Jan '13 - 4:50 
You don't know Venkateshkishore? We all know Venkateshkishore!
GeneralRe: How to use this structurel function and return struct fuction ah?mvpJohn Simmons / outlaw programmer4 Jan '13 - 5:20 
This is the long sought-after method that Al Gore uses to calculate the current rate of increase of global warming.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web02 | 2.6.130516.1 | Last Updated 19 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid