Thank you!

On 4 Mai, 17:47, Matthias Kaehlcke <[email protected]> wrote:
> El Wed, May 04, 2011 at 08:18:37AM -0700 Dudero ha dit:
>
> > can somebody explain me for what the variable: "prefix" in the
> > following struct is used for:
>
> > Android-sources/system/init/devices.c
> > ...
> > struct perms_ {
> >     char *name;
> >     mode_t perm;
> >     unsigned int uid;
> >     unsigned int gid;
> >     unsigned short prefix;
> > };
> > ...
>
> > Obviously, it can have the values ​​0 or 1.
>
> judging from the source code perms->prefix is used to deal with
> wildcards in the device path specification. if perms->prefix is 1 the
> permissions will be applied to all device nodes whose path begins with
> perms->name
>
> see do_device() in builtins.c and get_device_perm_inner() in devices.c
> (both in mydroid/system/core/init/)
>
> regards
>
> --
> Matthias Kaehlcke
> Embedded Linux Developer
> Amsterdam
>
>                    If you pay peanuts, you get monkeys
>                            (James Goldsmith)
>                                                                  .''`.
>     using free software / Debian GNU/Linux |http://debian.org : :'  :
>                                                                 `. `'`
> gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4                  `-

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to