search for: name_to_dev_t_r

Displaying 4 results from an estimated 4 matches for "name_to_dev_t_r".

Did you mean: name_to_dev_t
2010 Feb 25
3
why mtd root device number is __makedev(0,254)
Hi, I'm wondering when /proc/cmdline has "root=/dev/mtdblockX", name_to_dev_t_real will return __makedev(0,254) for root device's device number which is weired. I think we need to create the device on the fly from information in sysfs. Maybe I have mistaken something. Is there any clue? -- Regards, Shizheng -------------- next part -------------- An HTML attachment was...
2011 Aug 07
2
[PATCH] kinit minor checkpatch cleanup
...to_dev.c b/usr/kinit/name_to_dev.c index d491285..d8c1736 100644 --- a/usr/kinit/name_to_dev.c +++ b/usr/kinit/name_to_dev.c @@ -69,7 +69,7 @@ static dev_t try_name(char *name, int part) return res + part; } - fail: +fail: return (dev_t) 0; } @@ -122,8 +122,8 @@ static inline dev_t name_to_dev_t_real(const char *name) return st.st_rdev; if (strncmp(name, "/dev/", 5)) { - if ((cptr = strchr(devname+5, ':')) && - cptr[1] != '\0') { + cptr = strchr(devname+5, ':'); + if (cptr && cptr[1] != '\0') { /* Colon-separated de...
2007 Aug 24
2
[git patch] klibc bzero, mount fixes + random stuff
...strtoul(s + 1, &s, 10); + minor_num = strtoul(s + 1, &s, 10); if (*s) goto fail; - res = makedev(major, minor); + res = makedev(major_num, minor_num); /* if it's there and we are not looking for a partition - that's it */ if (!part) @@ -105,7 +105,7 @@ static inline dev_t name_to_dev_t_real(const char *name) int len; const char *devname; char *cptr, *e1, *e2; - int major, minor; + int major_num, minor_num; if (name[0] == '/') { @@ -124,10 +124,10 @@ static inline dev_t name_to_dev_t_real(const char *name) cptr[1] != '\0') { /* Colon-separated...
2010 Mar 02
17
[PATCH 00/16] External building, update for 2.6.33 and multiple root devices.
The following patchset implements 3 seperate series of changes. External Building ================= Patches 1 through 8 enable to use of klibc's build system while leaving the src tree pristine (and potentially read only). Specifically: - srctree=<Sources for klibc> - objtree=<Ouput directory for klibc> - KLIBCKERNELSRC=<Kernel sources> - KLIBCKERNELOBJ=<Kernel