Re: SRIO user level interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Asha,

On Wed, Dec 15, 2010 at 10:39 PM, Asha R <rd.asha22@xxxxxxxxx> wrote:
> Hi All,
> I am working on Serial rapidio (SRIO)  linux driver. The SRIO interface is
> up.
>
> I want to write an user level application for SRIO interfaces.  (ex:
> doorbell send, doorbell receive).
>
> To do this, i am not seeing file created under /dev directory.
> I am able to see endpoint and switch details under /sys/devices/.
>
> Please help me in understanding about how to create endpoint in /dev
> directory.

If your system has udev, then you can add a few calls in your driver
to get the /dev node created automatically.

I have a couple of drivers which both do this:
<http://svn.hylands.org/linux/gpio-event/module/gpio-event-drv.c>
look at the gpio_event_init function (near the end of the file)

<http://svn.hylands.org/linux/gpio/module/user-gpio-drv.c>
look at the gpio_drv_init function (also near the end).

The calls to class_create and device_create sets things up sp that
udev will create the /dev node.

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.DaveHylands.com/

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux