cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor
Visitor
374 Views
Registered: ‎10-28-2019

where to get the demo that the libmetal work with select() function based on linux user space application

Jump to solution

Hi everyone,

when read the README.md of libmetal library, I found the following information, 

### Interrupt

libmetal provides APIs to register an interrupt, disable interrupts and restore
interrupts.

The Linux userspace implementation will use a thread to call select() function
to listen to the file descriptors of the devices to see if there is an interrupt
triggered. If there is an interrupt triggered, it will call the interrupt
handler registered by the user application.

but I can not get any demo application source code includes the select() funtion released in the following site address, can you tell me where can I found this demo that libmetal work with select() function ?

https://github.com/OpenAMP/libmetal

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Visitor
Visitor
271 Views
Registered: ‎10-28-2019

Re: where to get the demo that the libmetal work with select() function based on linux user space application

Jump to solution
0 Kudos
5 Replies
Highlighted
Adventurer
Adventurer
309 Views
Registered: ‎08-10-2018

Re: where to get the demo that the libmetal work with select() function based on linux user space application

Jump to solution

https://github.com/Xilinx/meta-openamp/tree/rel-v2018.2/recipes-openamp

 

I believe this is the repo you a re looking for.  I agree that these example programs are hard to find.

0 Kudos
Highlighted
Adventurer
Adventurer
307 Views
Registered: ‎08-10-2018

Re: where to get the demo that the libmetal work with select() function based on linux user space application

Jump to solution

Hmmm, can't find an edit button for my reply.

I forgot to say, change the "branch" to whichever release of Vivado/Petalinux you're working with.  The link I gave is on the 2018.2 branch.

0 Kudos
Highlighted
Visitor
Visitor
273 Views
Registered: ‎10-28-2019

Re: where to get the demo that the libmetal work with select() function based on linux user space application

Jump to solution

I have got those source code I am interested, as the attached files.

lib_system_linux_irq.png
0 Kudos
Highlighted
Visitor
Visitor
272 Views
Registered: ‎10-28-2019

Re: where to get the demo that the libmetal work with select() function based on linux user space application

Jump to solution
0 Kudos
Highlighted
Moderator
Moderator
225 Views
Registered: ‎05-10-2017

Re: where to get the demo that the libmetal work with select() function based on linux user space application

Jump to solution

The poll function call is linuxcall to wait on a fd

http://man7.org/linux/man-pages/man2/poll.2.html

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos