Re: looking for corrections/enhancements/omissions for LKD3
On Sun, 31 Oct 2010, Greg KH wrote: On Sun, Oct 31, 2010 at 08:18:52AM -0400, Robert P. J. Day wrote: Also, I saw XIP in ext2 filesystem. Quite neat..but again, why? hmmm ... not sure, i'll look into that. So you can run Linux on a system with very limited amount of ram and your code running in rom or flash. sorry, i didn't mean i'd look into *why* XIP exists, i'd look into whether this was a new feature for ext2. rday -- Robert P. J. Day Waterloo, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ
Re: looking for corrections/enhancements/omissions for LKD3
On Sun, Oct 31, 2010 at 08:18:52AM -0400, Robert P. J. Day wrote: Also, I saw XIP in ext2 filesystem. Quite neat..but again, why? hmmm ... not sure, i'll look into that. So you can run Linux on a system with very limited amount of ram and your code running in rom or flash. greg k-h -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ
typdef in iw_handler.h
I have used typedef in my C programs previously many times. So it is not new to me For example consider following typedef struct var { int data1; int data2; char data3; }; typedef struct var newtype; then we can use newtype instead of struct var. Now see this typedef int (*iw_handler)(struct net_device *dev, struct iw_request_info *info, union iwreq_data *wrqu, char *extra); above is line number 314 in include/net/iw_handler.h I was not able to understand what is being typedef'd here? -- http://vger.kernel.org/vger-lists.html -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ
Re: typdef in iw_handler.h
On Mon, Nov 1, 2010 at 2:24 PM, Bond jamesbond.2...@gmail.com wrote: I have used typedef in my C programs previously many times. So it is not new to me For example consider following typedef struct var { int data1; int data2; char data3; }; typedef struct var newtype; then we can use newtype instead of struct var. Now see this typedef int (*iw_handler)(struct net_device *dev, struct iw_request_info *info, union iwreq_data *wrqu, char *extra); above is line number 314 in include/net/iw_handler.h I was not able to understand what is being typedef'd here? -- http://vger.kernel.org/vger-lists.html -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ http://publications.gbdirect.co.uk/c_book/chapter8/typedef.html -- Darshan®
Re: typdef in iw_handler.h
2010/11/1 Bond jamesbond.2...@gmail.com I have used typedef in my C programs previously many times. So it is not new to me For example consider following typedef struct var { int data1; int data2; char data3; }; typedef struct var newtype; then we can use newtype instead of struct var. Now see this typedef int (*iw_handler)(struct net_device *dev, struct iw_request_info *info, union iwreq_data *wrqu, char *extra); above is line number 314 in include/net/iw_handler.h I was not able to understand what is being typedef'd here? A type of 'function pointer' with four args and a int return value is declared. With the code you cited, you can use the following code to declare a function pointer: iw_handler my_fun_ptr; -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ
Re: looking for corrections/enhancements/omissions for LKD3
On Mon, Nov 01, 2010 at 11:52:25AM +0700, Mulyadi Santosa wrote: Hi Greg... On Mon, Nov 1, 2010 at 10:21, Greg KH g...@kroah.com wrote: On Sun, Oct 31, 2010 at 08:18:52AM -0400, Robert P. J. Day wrote: Also, I saw XIP in ext2 filesystem. Quite neat..but again, why? ? hmmm ... not sure, i'll look into that. So you can run Linux on a system with very limited amount of ram and your code running in rom or flash. Make senses to me...thanks for the explanation greg. Anyway, why ext3 doesn't have similar feature? Maybe because no one created it yet? thanks, greg k-h -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ
Re: typdef in iw_handler.h
On Mon, Nov 1, 2010 at 2:49 PM, Darshan Ghumare darshan.ghum...@gmail.com wrote: http://publications.gbdirect.co.uk/c_book/chapter8/typedef.html iw_handler is the type. For example: int do_something(struct net_device *dev, struct iw_request_info *info, union iwreq_data *wrqu, char *extra) { /* do stuff */ } int do_something_else( same thing here ) { /* more stuff */ } iw_handler handlers[10]; handlers[0] = do_something; handlers[1] = do_something_else; ... etc. ... int choice = 4; handlers[choice](dev, blah1, info_arg, iwreq_blah_arg, NULL); This allows you to set up an array of functions that all take the same arguments but do different things. You can then use a variable to choose the function without caring what it does, and pass the same arguments regardless of which function is being called. -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ
where is usb driver file system
I checked this link http://www.linux-usb.org/USB-guide/x173.html excerpts from above page The USB device filesystem is a dynamically generated filesystem, similar to the /proc filesystem. This filesystem can be mounted just about anywhere, however it is customarily mounted on /proc/bus/usb, whi and went to see /proc/bus but the directories were not there as they have mentioned. Can some one point me to right direction. -- http://www.howtoforge.com/install-linux-without-burning-an-iso-to-cd-dvd-use-the-iso-downloaded-to-your-hard-drive -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ
Re: where is usb driver file system
On Mon, Nov 01, 2010 at 07:11:52PM +0530, Tapas Mishra wrote: I checked this link http://www.linux-usb.org/USB-guide/x173.html excerpts from above page The USB device filesystem is a dynamically generated filesystem, similar to the /proc filesystem. This filesystem can be mounted just about anywhere, however it is customarily mounted on /proc/bus/usb, whi and went to see /proc/bus but the directories were not there as they have mentioned. Can some one point me to right direction. It's no longer mounted at /proc/bus/usb as it's not needed there anymore. But if you want to, you can mount it anywhere you want: mount -t usbfs none /home/foo/usbfs What do you want to do with it? thanks, greg k-h -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ
Re: how to efficient use linux caches
Hi... Let's see if I can help ... On Mon, Nov 1, 2010 at 19:48, loody milo...@gmail.com wrote: I am debugging a user mode program which is used to play multimedia. The size of cache memory is growing so high while playing files and that makes my kernel become slow cache grows at that situation is acceptablebut slow? what was slow? choppy sound playback? so I want to know 1. is there any function call that will increase cache usage I need to pay attention. every functions that read files from block device will dounless you do direct I/O or XIP (eXecute In Place) 2. is there any function which help me to clean the caches check the handler(s) of /proc/sys/vm/drop_caches...that would be the hint... 3. can I limit the size of cache or memory when some process, or pid, try to allocatte? cache? uhm... AFAIK there isn't such tunable...or maybe you can take a look on cgroups...who knows it is doable via cgroups. but regarding the size of memory allocated for a program or programs launched by a user, you can check ulimit and/or cgroups. -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ
struct in_device set to 1 for ipforwarding what does that mean
In the file include/linux/inetdevice.h struct in_device has a member cnf which is set to 1 when IP Forwarding is enabled in Linux Kernel cnf is a struct of type ipv4_devconf so what does this mean that the member cnf is set to 1. I am not able to understand how can a structure be set to 1? -- http://mightydreams.blogspot.com -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ
Re: where is usb driver file system
On Mon, Nov 1, 2010 at 7:26 PM, Greg KH g...@kroah.com wrote: It's no longer mounted at /proc/bus/usb as it's not needed there anymore. But if you want to, you can mount it anywhere you want: mount -t usbfs none /home/foo/usbfs What do you want to do with it? Nothing just learning to write drivers for USB and Network Drivers. -- http://www.howtoforge.com/install-linux-without-burning-an-iso-to-cd-dvd-use-the-iso-downloaded-to-your-hard-drive http://wiki.linuxquestions.org/wiki/User:Tapas.mishra http://mightydreams.blogspot.com http://wiki.xensource.com/xenwiki/Xen_on_4_app_servers http://wiki.xensource.com/xenwiki/EditorsGroup http://www.linuxforums.org/articles/authors/tapas-mishra_95.html -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ
New PCIe + SSD standard
I just saw: http://www.zdnet.com/blog/btl/tech-giants-form-ssd-working-group-to-bolster-enterprise-adoption/40980?tag=nl.e539 Looks intriguing in that they want to come up with an extension to the PCIe spec. specifically for SSDs. I assume the concept is for a SSD that is built into a PCIe card. And that main command protocol will be based on SAS, not SATA. That should be very interesting. I'm not sure it will take much in the way of new code for the kernel. We'll see how it shakes out. Greg
Re: where is usb driver file system
On Mon, Nov 01, 2010 at 11:23:22PM +0530, Tapas Mishra wrote: On Mon, Nov 1, 2010 at 7:26 PM, Greg KH g...@kroah.com wrote: It's no longer mounted at /proc/bus/usb as it's not needed there anymore. But if you want to, you can mount it anywhere you want: ? ? ? ?mount -t usbfs none /home/foo/usbfs What do you want to do with it? Nothing just learning to write drivers for USB and Network Drivers. You don't need to use usbfs for that, so don't worry about it. thanks, greg k-h -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ