The gpio driver was a good example of what I was looking for.  Thanks for the suggestion! 

On Wednesday, March 28, 2012, AKS wrote:
"User space" or "kernel space" driver for your character device driver?

On 3/28/12, Ben Johnson <myalphabetfamily@gmail.com> wrote:
> Hello,
>   I am writing a custom character device driver. When the open
> function is called in the kernel code I am looking to pull out some
> piece of unique information out of either the inode struct or the file
> struct that could then be used to identify during subsequent reads and
> writes.  Everything that I have tried to pull out so far has been
> zero.  Has anyone done this with success before?
>
> I am also open to the idea of setting something in the inode or file
> struct that will be preserved and could be read back during subsequent
> read and write calls.  Any ideas?
>
> Thanks,
> Ben
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> gumstix-users mailing list
> gumstix-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users