Re: How to implement a driver's read and write operations with synchronization properly

2014-07-29 Thread Jonathan Neuschäfer
On Tue, Jul 29, 2014 at 10:24:41AM -0400, valdis.kletni...@vt.edu wrote: > On Tue, 29 Jul 2014 20:59:08 +0700, Anh Le said: > > > still, user programs like bash could have a race problem by spliting > > the input, I hope that they can somehow take care of this problem > > themselves. > > stdio is

Re: How to implement a driver's read and write operations with synchronization properly

2014-07-29 Thread Jonathan Neuschäfer
n's dash. ] As you can see, I observed the same pattern of 1008 and 993 bytes. Greetings, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: opening a file second time using vi on LCD console hangs the system

2014-07-29 Thread Jonathan Neuschäfer
On Tue, Jul 29, 2014 at 04:38:52AM +, Chan Kim wrote: > Hi, > I'm using fbconsole on the LCD using USB keyboard. Does this also happen in ssh sessions into the same machine? Does it happen inside terminal multiplexers such as tmux and screen? > I open a new file using vi then edit, write it,

Re: How to implement a driver's read and write operations with synchronization properly

2014-07-29 Thread Jonathan Neuschäfer
hat the write procedure ends > with the 2000th byte. What if there are more? Again, where does this write procedure run? Greetings, Jonathan Neuschäfer > Could anyone tell me the proper way to deal with this situation? > Thanks in advance. > > -- > Le Quoc Anh

Re: Getting started on Linux Kernel Development

2013-05-31 Thread Jonathan Neuschäfer
posted to the mailing lists is usually appreciated. -- Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: hi about C and asm

2013-05-29 Thread Jonathan Neuschäfer
uot; (res):"0" (0),"r" (nr),"m" (*(addr))); \ > res;}) > > > But, almost I can't understand this. So I want to understand asm in C, > which book or website I should learn ? Google "asm in c&q

Re: what's best way for playing with kernel configurations and source code

2013-05-27 Thread Jonathan Neuschäfer
ss to your machine in case the kernel > changes you have made are serious. If they're serious enough you might still break your file system and lose your data, so it's in any case good to have a backup. ;-) -- Thanks, Jonathan Neuschäfer ___

Re: Kernel 64bit

2013-05-25 Thread Jonathan Neuschäfer
here: http://www.idallen.com/topposting.html I see you seem to use Microsoft Outlook. That makes formatting emails nicely (to the standard of technical communities which have their roots in UNIX culture) a bit harder. Thanks, Jonathan Neuschäfer ___

Re: cfs scheduler vruntime overflow

2013-05-09 Thread Jonathan Neuschäfer
On Thu, May 09, 2013 at 07:24:58PM +0900, 이승훈 wrote: > hi all. > I have a question about vruntime. > it will not overflow? > i know it's type is u64. > but how about 32bit machine? > i'm wating your help. > > Thanks, > Earl u64 is always 64 bits

Re: Couple of questions on OOM trace.

2013-05-09 Thread Jonathan Neuschäfer
requested as a power of 2 Or, better yet, mm/mempolicy.c, line 2024: * @order: Power of two of allocation size in pages. 0 is a single page. HTH, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: read PCI memory and config spyce through /dev/mem

2013-05-07 Thread Jonathan Neuschäfer
xb7678000 > The PCI memory is : 0x33 > The PCI memory is : 0x34 > > And the LED matrix display being behind that address switches from 3 to > 4 as expected. > > Thus, I still cannot see why the access through /dev/mem using dd doesn't > work. I suspect dd uses read

Re: hello and wiki edit

2013-04-30 Thread Jonathan Neuschäfer
e moment. How does it appear inactive? --- Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: the github repo, and bugzilla.kernel.org

2013-04-10 Thread Jonathan Neuschäfer
acking-kernelorg) I think he planned to always push all changes to both repositories. HTH, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Biggest Fake Conference in Computer Science

2013-04-03 Thread Jonathan Neuschäfer
er > (6). Laptop is an example for a super computer > (7). Operating system is an example for computer hardware > > > Also, our paper did not express any conceptual meaning. Is this paper publicly available? I'd like to read

Re: what does it use two "!!"

2013-04-01 Thread Jonathan Neuschäfer
eans much of the time), but e-mail. If you do, then yes, there are a lot of mailing lists about various aspects of the linux kernel, and kernelnewbies@kernelnewbies.org is one of them. Hope that helps, Jonathan Neuschäfer ___ Kernelnewbies mailing list Ke

Re: feature removal schedule is removed ?

2013-03-25 Thread Jonathan Neuschäfer
d just enter the file itself in the feature-removal schedule (to see if anybody who edits the file actually looks at it), that's cute but non-productive. Signed-off-by: Linus Torvalds delete mode 100644 Documentation/feature-removal-schedule.txt $ git describe --con

Re: Kernel freeze when writing e1000 driver

2013-02-26 Thread Jonathan Neuschäfer
b,0x4c,0x81,0x18,0x01,0x00,0x00,0x00,0x00,0x60,0x02,0x22,0x38,0x14,0x66,0x00,0x00,0x02,0x04,0x05,0xb4}; > int len = 58; Although it won't solve the problem at hand, I suggest using "sizeof" here. Thanks, Jonathan Neuschäfer _

Re: Creating scheduler

2013-02-06 Thread Jonathan Neuschäfer
watts than watts per second? Regards, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: working of fork and exec

2013-01-18 Thread Jonathan Neuschäfer
ngs are done ... Can > anybody please explain me this ? Thank you in advance. I recommend reading linux-0.12. Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: trace MKFS

2013-01-04 Thread Jonathan Neuschäfer
writes on the block device when we run the command? > Are there any good documents which can explain the same? To trace the syscalls a program issues, I recommend using strace. Thanks, Jonathan Neuschäfer ___ Kernelnewbies mailing

Re: how to look for source code in kernel

2012-12-28 Thread Jonathan Neuschäfer
On Fri, Dec 28, 2012 at 11:49:53AM -0800, Eric W. Biederman wrote: > Al Viro writes: > > > On Thu, Dec 27, 2012 at 11:36:13PM -0800, Eric W. Biederman wrote: > >> But then I am probably peculiar keeping an index of the source code in > >> my head. When I need to look for something and I don't kn

Re: how to look for source code in kernel

2012-12-27 Thread Jonathan Neuschäfer
On Thu, Dec 27, 2012 at 11:01:52PM +0530, kishore kumar wrote: > can anybody tell me how to look into source code, as most are hidden in > kernel. You can find the Linux source code at http://kernel.org/ . HTH, Jonathan Neuschäfer ___ Kerneln

Re: How to choice the Open source project about kernel?

2012-12-19 Thread Jonathan Neuschäfer
fix it. There's also several websites (and a few books) that are dedicated to Linux kernel programming out there, such as http://crashcourse.ca/. HTH, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.ker

Re: sysfs: pass function pointers to kernel (not just a value through attribute)

2012-12-19 Thread Jonathan Neuschäfer
w kernel service I want to add is not that > general to be added as a new syscall. > > Thanks in advance! > T You might want to use plain old kernel modules, after all. Greetings, Jonathan Neuschäfer ___ Kernelnewbies mailing

Re: Question about applying a kernel patch with "git am" received from a mailing list

2012-11-21 Thread Jonathan Neuschäfer
almost > always inline). Try the following, it worked for me: - "tag" the patchset and "tag-save" or "tag-copy" it into one file - run: git am patchset.name BTW, everyone working with git should try StGit ("stacked git&q

Re: Gpio interrupt shall pass the signal to application

2012-10-06 Thread Jonathan Neuschäfer
tion need to be transmitted from your device to the application? Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: I/O event notification mechanism - select() or epoll() ?

2012-09-28 Thread Jonathan Neuschäfer
need to register a callback function. HTH, Jonathan Neuschäfer [1] http://software.schmorp.de/pkg/libev.html ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Kernel booting problem.

2012-08-29 Thread Jonathan Neuschäfer
sole control. Any ideas. Which prompt is missing? Can I assume ssh works? If the hardware / video terminals aren't starting, I suggest having a look at your init scripts (that's where getty and friends are started). HTH, Jonathan Neuschäfer ___

Re: How can I change cr0 register in redhat system

2012-07-23 Thread Jonathan Neuschäfer
On Mon, Jul 23, 2012 at 09:38:44PM +0800, Fan Yang wrote: > May be I can work it by adding a new syscall in the kernel, right? A sysfs-based interface should do it just as well. Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewb

Re: How can I change cr0 register in redhat system

2012-07-23 Thread Jonathan Neuschäfer
most like what you seem to be trying to do is arch/arm/mach-* > but when I'm building the code, there is error : > *fatal error: asm/arch/fileabc.h : No such file or directory* > * > * > *Any problem with the link ?* Which link? If you mean the linker or the linking proccess, th

Re: Problem with module spanning from multiple files

2012-07-18 Thread Jonathan Neuschäfer
On Wed, Jul 18, 2012 at 12:40:52PM +0400, aleksey wrote: > int my_module_init(void) > { > pr_emerg("Hello, world module is loading\n"); > print_message(); > return 0; > } Do you get the "Hello, world" message? Jonathan ___ Kernelnewbies mailing list K

Re: Not getting login prompt after CPU entered into cpu_idle() state

2012-07-05 Thread Jonathan Neuschäfer
On Fri, Jul 06, 2012 at 12:56:45AM +0700, Mulyadi Santosa wrote: > Hi... > > On Thu, Jul 5, 2012 at 12:12 PM, Srinidhi M wrote: > > .@ <271> ret = 0 : > > /sbin/init > > FYI I absolutely has no hands on experience on this kind of hack, so > this is purely speculation. > > I am thinking

Re: geting weird semi-random panic on kmalloc

2012-06-22 Thread Jonathan Neuschäfer
On Fri, Jun 22, 2012 at 03:50:49AM +0300, NorthPole wrote: > for(i=0;i<250;i++) > registerTvlv(i,0x01,1,&batadv_ogm_packet->gw_flags,bat_priv,batadv_ogm_packet); Have you asked the people at irc.freenode.org #batman? ___ Kernelnewbies mailing list Kerne

Re: is memcpy a system call?

2012-06-08 Thread Jonathan Neuschäfer
On Fri, Jun 08, 2012 at 08:51:09PM +0530, siddharth saxena wrote: > Hi > > Memcpy is both- a system call as well as a user library function. > Implementation differs Can you give me an example of memcpy being implemented as a syscall? Thanks, Jonatha

Re: is memcpy a system call?

2012-06-08 Thread Jonathan Neuschäfer
I don't think it makes much sense to implement memcpy as a syscall, because entering kernel mode is usually relatively expensive and I can't think of any kernel mode-only memcpy optimizations (and optimizations are the only reason to do a user space memcpy in kernel space I can

Re: rev2 - Driver for BlinkM i2c LED module

2012-06-03 Thread Jonathan Neuschäfer
gt; > /* off */ > data->red = 0x00; > data->green = 0x00; > data->blue = 0x00; > ret = blinkm_transfer_hw(client, BLM_FADE_RGB); > if (ret < 0) > printk(KERN_INFO > "Failure in blinkm_remove ignored.

Re: Driver for BlinkM i2c LED module

2012-06-01 Thread Jonathan Neuschäfer
On Fri, Jun 01, 2012 at 11:45:53PM +0200, Jan-Simon Möller wrote: > Thanks for the review, Jonathan. > I'll do a rev2 asap. But please note that some of my "why" questions where simply questions and no actual suggestions, so take my word with a grain of salt! :-) Jonathan _

Re: Driver for BlinkM i2c LED module

2012-06-01 Thread Jonathan Neuschäfer
FADE_HSB); > if (ret < 0) > printk(KERN_INFO > "Failure in blinkm_remove ignored. Continuing.\n"); > > /* red fade to off */ > data->red = 0xff; > ret = blinkm_transfer_hw(client, BLM_GO_RGB); > if (ret < 0) > printk(KERN_INFO > "Failure in blinkm_remove ignored. Continuing.\n"); > > /* off */ > data->red = 0x00; > data->green = 0x00; > data->blue = 0x00; > ret = blinkm_transfer_hw(client, BLM_FADE_RGB); > if (ret < 0) > printk(KERN_INFO > "Failure in blinkm_remove ignored. Continuing.\n"); > > sysfs_remove_group(&client->dev.kobj, &blinkm_group); > kfree(data); > return 0; > } > > static const struct i2c_device_id blinkm_id[] = { > {"blinkm", 0}, > {} > }; > > MODULE_DEVICE_TABLE(i2c, blinkm_id); > > /* This is the driver that will be inserted */ > static struct i2c_driver blinkm_driver = { > .class = I2C_CLASS_HWMON, > .driver = { > .name = "blinkm", > }, > .probe = blinkm_probe, > .remove = blinkm_remove, > .id_table = blinkm_id, > .detect = blinkm_detect, > .address_list = normal_i2c, > }; > > static int __init blinkm_init(void) > { > return i2c_add_driver(&blinkm_driver); > } > > static void __exit blinkm_exit(void) > { > i2c_del_driver(&blinkm_driver); > } > > MODULE_AUTHOR("Jan-Simon Moeller "); > MODULE_DESCRIPTION("BlinkM"); I'd call it "BlinkM LED driver" or something, "BlinkM" alone isn't really descriptive. > MODULE_LICENSE("GPL"); > > module_init(blinkm_init); > module_exit(blinkm_exit); Thanks, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Incremental Linking

2012-05-22 Thread Jonathan Neuschäfer
rated and > inserted into a running kernel due to this "incremental linking " technology. Can you give us a pointer to where you read this? Thanks, Jonathan Neuschäfer >   > If anyone can provide me some pointers to understand the "incremental > linking&quo

Re: Why I can't compile a simple netfilter hook module?

2012-05-22 Thread Jonathan Neuschäfer
pv4.h, line 10). HTH, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: stdout to console

2012-04-25 Thread Jonathan Neuschäfer
1 root root 15 Apr 25 18:18 /dev/stdout -> /proc/self/fd/1 Thanks, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: stdout to console

2012-04-23 Thread Jonathan Neuschäfer
ing to figure out what exactly a user space process does. The man pages of various system calls (open, fork, exec, dup, etc.) may also provide valuable information. Thanks, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: how to get create/compile time of vmlinux

2012-04-20 Thread Jonathan Neuschäfer
bly also vmlinux files. HTH, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Doubt [about writing device drivers]

2012-04-19 Thread Jonathan Neuschäfer
river for? What kind of device is it? Thanks, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: [RFC] Kernel API

2012-04-13 Thread Jonathan Neuschäfer
7;, which i can understand it and use it. But i have > not find the way > to search a Kernel API easily. Cloud anyone give me some advices? The build scripts will generate man pages for you if you run "make mandocs" (see the output of "make help"

Re: [RFC]Something wrong with my module

2012-04-12 Thread Jonathan Neuschäfer
On Thu, Apr 12, 2012 at 09:52:02PM +0800, harryxiyou wrote: > On Thu, Apr 12, 2012 at 9:03 PM, Jonathan Neuschäfer > wrote: > > Hi Jonathan, > > > On Thu, Apr 12, 2012 at 06:16:56PM +0800, harryxiyou wrote: > >> Hi greg, > >> > ... > &g

Re: [RFC]Something wrong with my module

2012-04-12 Thread Jonathan Neuschäfer
;1> Hello World\n"); The KERN_* constants are a good replacement for a manual "". > > > Dmesg logs: > > [ 1174.738305] Search for insert task> [...] > [ 1174.738819] pid: 2481, state: 1, comm: bash > [ 1174.738822] pid: 0, state: 1, comm: >

Re: using sizeof operator

2012-01-22 Thread Jonathan Neuschäfer
ore explicit about the intention. HTH, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: git clone of linux kernel provides only compressed pack files

2012-01-20 Thread Jonathan Neuschäfer
On Fri, Jan 20, 2012 at 06:38:47PM +0530, Manavendra Nath Manav wrote: > [root@pe1800xs src]# git clone --recursive -v > http://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git > Cloning into linux-stable... Have you looked into the linux-stable directory? HTH,

Re: Does Linux process exist information leakage?

2012-01-16 Thread Jonathan Neuschäfer
memory on Linux? I know two sources of memory that are used by malloc. One is brk(), the other is mmapped pages of /dev/zero. With /dev/zero it's obvious that you get empty pages (all-zero); with brk I wasn't sure so I wrote the test program below and ran it. I didn't find any dirty

Re: network Driver interface to the stack

2012-01-15 Thread Jonathan Neuschäfer
On Sun, Jan 15, 2012 at 07:15:02PM +0530, V l wrote: > the packet . Very nice ! But when I compile this code , its going to ask > where this driver specific senddata is defined , the header file or library Would you mind posting the exact code and compiler output? Thanks, Jo

Re: Does Linux process exist information leakage?

2012-01-12 Thread Jonathan Neuschäfer
(CMIIW). (Which doesn't mean zeroing isn't also a good idea) Of course, people should also encrypt their disks on this kind of server. Thanks, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Does Linux process exist information leakage?

2012-01-11 Thread Jonathan Neuschäfer
On Wed, Jan 11, 2012 at 08:53:07PM +0800, 夏业添 wrote: >As the man page of malloc said:"The memory is not initialized" That means, if malloc returns a region that has previously been malloc'd, written to and free'd, you may get the these previously written data.

Re: Fwd: Problem: plist_add undefined!

2011-12-21 Thread Jonathan Neuschäfer
d *head) plist_check_head(head); } +EXPORT_SYMBOL(plist_add); +EXPORT_SYMBOL(plist_del); + #ifdef CONFIG_DEBUG_PI_LIST #include #include Hope This Helps, Jonathan Neuschäfer ___ Kernelnew

Re: Question about RCU

2011-12-21 Thread Jonathan Neuschäfer
e rcu protected > regions. It doesn't. Have you read Documentation/RCU/whatisRCU.txt? Thanks, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Learning Linux Kernel

2011-12-13 Thread Jonathan Neuschäfer
rs' git trees yet. Bugzilla (http://bugzilla.kernel.org/) is currently not available. HTH, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: some questions about log level

2011-12-12 Thread Jonathan Neuschäfer
-alikes. HTH, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Bug:scheduling while atomic..

2011-12-05 Thread Jonathan Neuschäfer
ething is wrong in dpram_write function, But couldnt exactly > know what happend. > Even i tried disassembling the function, i traced to some normal jump > instruction. You should consider imforming the mwlan_aarp module's vendor/maintainer; Few kernel people like to debug someone else&#x

Re: Bug:scheduling while atomic..

2011-12-05 Thread Jonathan Neuschäfer
d to some normal jump > instruction. > > I know this error comes when, some function sleeps in atomic context. > > Can anyone pls help me in fixing this.. Is it your code that's failing here? Otherwise a good bug report on linux-ker...@vger.kernel.org is usually apprecia

Re: How to hook the system call?

2011-11-28 Thread Jonathan Neuschäfer
On Mon, Nov 28, 2011 at 02:12:37AM +0100, richard -rw- weinberger wrote: > Please keep in mind that hooking a system call is very bad and error prone. Sure. -- Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org h

Re: How to hook the system call?

2011-11-27 Thread Jonathan Neuschäfer
s some trickery to make the page writable first. HTH, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: How can I know what is tainting my kernel

2011-11-13 Thread Jonathan Neuschäfer
On Sat, Nov 12, 2011 at 04:39:59PM -0800, Greg KH wrote: > On Sun, Nov 13, 2011 at 01:18:47AM +0100, Jonathan Neuschäfer wrote: > > On Sat, Nov 12, 2011 at 03:49:53PM -0800, Greg KH wrote: > > > On Sat, Nov 12, 2011 at 08:23:32PM -0200, Daniel Hilst Selli wrote: > > >

Re: How can I know what is tainting my kernel

2011-11-12 Thread Jonathan Neuschäfer
console saying that kernel > > was tainted and /proc/sys/kernel/tainted gives me 4024. There is any > > other thing on module, besides license that can taint the kernel? > > Yes, lots of things, look at kernel.h for the full list. It's also documented in Docume

Re: Kernel Module from C program

2011-10-27 Thread Jonathan Neuschäfer
> Thanks, > > > Luis Morales. As you can't use the usual user space libraries in the kernel, it might take quite some time to port a user space program to the linux kernel API. And I guess it wouldn't be a good idea

Re: Purpose of using __be16 inside a data structure?

2011-10-25 Thread Jonathan Neuschäfer
accomplishes this goal. From the name, I expect this to be a 16-bit type. > It may have other attributes, such as a specific endianness (unusual except Yes, it's for 16-bit big-endian data. -- Jonathan Neuschäfer ___ Kernelnewbies mai

Re: I am hoping to develop the linux kernel, which version should I modify

2011-10-23 Thread Jonathan Neuschäfer
On Mon, Oct 24, 2011 at 02:24:50AM +0200, Jonathan Neuschäfer wrote: > Well, thanks for this polite and informed post. :-) I mean "easy to answer". :) ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbie

Re: I am hoping to develop the linux kernel, which version should I modify

2011-10-23 Thread Jonathan Neuschäfer
computer, if you're going to change things. > Thanks in advance. Well, thanks for this polite and informed post. :-) [0] http://git-scm.com/ [1] http://lxr.linux.no/linux [2] http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=tree Gr

Re: Questions about User Mode Linux

2011-10-12 Thread Jonathan Neuschäfer
nteresting :) Please report this kind of things, if you think you've hit a bug. (MAINTAINERS or the output of "scripts/get_maintainer.pl -f arch/um" tells you where to send your mails) Thanks, Jonathan Neuschäfer ___

Re: When is to preempt safe?

2011-10-07 Thread Jonathan Neuschäfer
being held, another task could try to acquire the same lock, causing a deadlock. HTH, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: how to configure printk() in 2.6 kernel

2011-08-30 Thread Jonathan Neuschäfer
TW, Ramesh told you to try /etc/rsyslog.conf (note the 'r'), not /etc/syslog.conf. HTH, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Can i allocate 4GB virtual addresses (more than a certain limit) using vmalloc?

2011-08-22 Thread Jonathan Neuschäfer
the 1MB. If you do it one vmalloc call your 1MiB should be continuous, i.e. if there's a guard page it will be after your megabyte. HTH, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: ohci_hcd leak ed

2011-08-19 Thread Jonathan Neuschäfer
On Fri, Aug 19, 2011 at 11:16:18PM +0300, DiP wrote: > On Fri, 19 Aug 2011 21:42:09 +0200 > Jonathan Neuschäfer wrote: > > > On Fri, Aug 19, 2011 at 12:53:46AM +0300, DiP wrote: > > > I found where it is. > > > > > > It seems to appear on my deskt

Re: ohci_hcd leak ed

2011-08-19 Thread Jonathan Neuschäfer
ible) bug may be useful (see http://www.kernel.org/pub/software/scm/git/docs/git-bisect.html). HTH, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: What's the value of %cs before jump in pm32 on booting?

2011-08-11 Thread Jonathan Neuschäfer
ns to jump > to cpu ring level 0 and do something there.. No, this is written in AT&T syntax, where the source comes first, and then the destination. IOW, the code means: Copy the 16 bit register CS into the lower 16 bit of EBX (which is BX). CMIIW, Jonathan Neuschäfer _

Re: difference between io_schedule() and schedule()

2011-08-08 Thread Jonathan Neuschäfer
truct rq *rq = raw_rq(); delayacct_blkio_start(); atomic_inc(&rq->nr_iowait); blk_flush_plug(current); current->in_iowait = 1; schedule(); current->in_iowait = 0; atomic_dec(&rq->nr_iowait); delayacct_blkio_end(); } EXPORT_SY

Re: How to get cpu utilization through code with least overhead?

2011-07-29 Thread Jonathan Neuschäfer
et the information that's shown in /proc/stat, I'd suggest having a look at fs/proc/stat.c in the kernel tree. HTH, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: failed to do make menuconfig

2011-07-25 Thread Jonathan Neuschäfer
On Fri, Jul 22, 2011 at 09:08:54PM +0530, Prashant Shah wrote: > Hi, > > In the latest staging tree I cant do "make menuconfig" or even "make config" Does it work if you run "make mrproper" first? Thanks, Jonathan Neuschäfer __

Re: How to find Bluetooth device type

2011-06-30 Thread Jonathan Neuschäfer
message and resend it. Do recent web mail UIs support sending mails without HTML? :) --- Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Debugging a custom kernel

2011-06-29 Thread Jonathan Neuschäfer
do ? > Beside, do you have any advice on the way I should proceed to get the > necessary information to port the kernel ? Does a stock kernel work in your setup? If so, try using its config, most distributions put it into /boot as config-`uname

Re: block size check in __getblk_slow

2011-06-29 Thread Jonathan Neuschäfer
st for comments) patch and someone should comment. But LKML can be a bit harsh if you're not used to it. If you want to discuss it here, you might also want to send a patch in addition to your thoughts, it's just a lot easier to get the context and the exact thing you're trying to do

Re: questions about the codingstyle in linux kernel.

2011-06-25 Thread Jonathan Neuschäfer
t. But now that we have Coccinelle[1], it might turn out to be quite easy to get rid of this camel-case spelling. [1] http://coccinelle.lip6.fr/ Btw, if you set off a discussion on the lkml regarding this, please CC me :). Thanks, Jonathan Neuschäfer _

Re: Is this a Bug?

2011-06-23 Thread Jonathan Neuschäfer
ame, goto err; } + memcpy(&data32, fw->data, sizeof(data32)); + data32 = be32_to_cpu(data32); + if (memcmp(fw->data, "WMFW", 4) != 0) { dev_err(codec->dev, "%s: firmware has bad file magic %08x\n"

Re: Is this a Bug?

2011-06-23 Thread Jonathan Neuschäfer
linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git&a=search&h=HEAD&st=author&s=neusch HTH, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: The problem with the installation of the latest kernel

2011-06-19 Thread Jonathan Neuschäfer
is make localmodconfig, which includes all the modules that are loaded into the new configuration. HTH, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Build scatterlist covering a process' text segment?

2011-06-17 Thread Jonathan Neuschäfer
On Fri, Jun 17, 2011 at 08:46:35PM +0200, Jonathan Neuschäfer wrote: > On Fri, Jun 17, 2011 at 06:18:06PM +0300, Metin KAYA wrote: > > Jonathan, it's kmalloc(), not kcalloc(). > > No, I was trying to suggest using kcalloc(), which behaves roughly like > the userspace

Re: Build scatterlist covering a process' text segment?

2011-06-17 Thread Jonathan Neuschäfer
seem to need. (see include/linux/slab.h, line 223 for reference) > > On 17 Haz 2011, at 18:10, Jonathan Neuschäfer wrote: > > > On Fri, Jun 17, 2011 at 02:47:25AM +0200, Arvid Brodin wrote: > > [...] > >>/ User page code / > >> > >

Re: Build scatterlist covering a process' text segment?

2011-06-17 Thread Jonathan Neuschäfer
retval = -ENOMEM; > goto err_pages; > } Greetings, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: fork() in libc

2011-06-14 Thread Jonathan Neuschäfer
call. The glibc wrapper invokes any fork handlers that have been established using pthread_atfork(3). Thanks, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: What does the ENTRY() macro do?

2011-06-13 Thread Jonathan Neuschäfer
HTH a bit, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: how setbuf is working in c program

2011-06-06 Thread Jonathan Neuschäfer
s containing printf format specifiers :-). > aa > aa > ello worldroot@desktop:/home/prabhu# ./a.out > aaa > aaa > llo worldroot@desktop:/home/prabhu# ./a.out > > > lo worldroot@desktop:/home/prabhu# ./a.out > a > a

Re: kernel list data structure

2011-06-06 Thread Jonathan Neuschäfer
On Mon, Jun 06, 2011 at 11:01:37AM +0430, Amirali Shambayati wrote: > As I have read this pdf, I think I have assigned them right. I don't know > what's wrong? :-? > https://prof.hti.bfh.ch/myf1/adv-linux/courseNotes/*klist*-*intro*-1.3.*pdf* A good introduction, thanks.

Re: kernel list data structure

2011-06-05 Thread Jonathan Neuschäfer
ndleNumber; > int size; > struct list_head bundlesQueue; > struct list_head reqsQueue; > int filled[8]; > }; > > struct noop_data { > struct list_head readQueue; > struct list_head writeQueue; > struct bundle bun; Why are you em

Re: executable ELF is rm-ed from disk, but still running RAM..

2011-05-30 Thread Jonathan Neuschäfer
st file descriptor referring to it is closed." A mapping is not a file desciptor but I believe that it behaves similiarly. But I'm not sure. Thanks, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Questions about preemption and concurrency

2011-05-27 Thread Jonathan Neuschäfer
Kernel Lock, which has just recently been removed. HTH, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: simple question about accessing pci io registers

2011-05-18 Thread Jonathan Neuschäfer
ill solve your problem. Greetings, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: rtc_ops structure

2011-05-14 Thread Jonathan Neuschäfer
MODULE); > > So Id say "yes" That's rtc_class_ops. Searching for the exact word "rtc_ops" avoids these false positives: $ grep -r "\" drivers/ $ rtc_class_ops (include/linux/rtc.h) seems to be that equivalent. Hope this helps, Jonathan Neuschäfer

Re: What is the adventage of macros against function

2011-04-27 Thread Jonathan Neuschäfer
nctionality cannot be implemented in a function. include/linux/kernel.h offers some good examples (e.g. ARRAY_SIZE, container_of, swap). Hope this helps, Jonathan Neuschäfer ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Linux kernel patches - websites

2011-04-25 Thread Jonathan Neuschäfer
gt;   > with regards > Anand Moon > ___ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies https://patchwork.kernel.org/ is usually the right place. Thanks, Jonathan Neuschäfer __