LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 09-13-2007, 01:44 AM   #1
prabhakar_kushwaha
LQ Newbie
 
Registered: Oct 2005
Location: New Delhi
Posts: 26

Rep: Reputation: 15
deallocation of resource allocated by platform_get_resources


Hi,

i am allocating a resource uing platform_get_resource().
Can any body tell me what will be the proper procedure of releasing this allocated
resource?

Regards,
Prabhakar
 
Old 09-13-2007, 04:17 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 70
Ummm… platform_get_resource() doesn’t actually allocate anything. It just cycles through all the resources in the specified platform_device matching the requested type and gives you the numth one. In this sense, it is merely a convenience function though it has the benefit of abstraction and hiding (i.e., it is inadvisable to duplicate its functionality since the implementation may change at any time).
 
Old 11-28-2007, 05:02 AM   #3
dsouza_jack
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Rep: Reputation: 0
you can use platform_device_put to Free all memory associated with a platform device.

Jackson.
 
  


Reply


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
[C] get allocated size Ephracis Programming 6 12-29-2006 10:55 PM
In C, using qsort for dynamically allocated array ntmsz Programming 7 08-23-2005 11:33 AM
When is the user stack allocated? moadon Programming 1 04-12-2005 12:28 AM
About allocated memory in C++ Ephracis Programming 2 12-28-2004 03:56 AM
allocated space of a directory Dave31836 Programming 8 10-04-2004 07:07 PM


All times are GMT -5. The time now is 06:03 AM.

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