Re: Logical, Linear and Virtual Address.

2010-12-23 Thread Denis Kirjanov
On Thu, Dec 23, 2010 at 6:10 PM, Gustavo da Silva wrote: > Hi Everyone! > > Friends, could someone explain me the difference between Kernel Logical > and Kernel Virtual Address? AFAIK there are 3 types of addresses: physical, kernel virtual (one-to-one mapped), and ...user virtual addresses... L

Re: fixed memory bytes

2011-01-04 Thread Denis Kirjanov
On Tue, Jan 4, 2011 at 8:40 PM, mohit verma wrote: > > hi all, > i have seen many places in  kernel where the variables specially the > structures should be of  fixed size independent of the architecture. i went > through the  definitions of them  but dint  get  clearly (or frankly  say > ...dint

Re: how to compile the 0.01 version of kernel

2011-01-09 Thread Denis Kirjanov
This guy has ported Linux to gcc4.x: http://www.kernel.org/pub/linux/kernel/people/abdel/readme I think that will help you On Sun, Jan 9, 2011 at 6:14 PM, KK wrote: > Hello All, > I was going through the linux kernel newbie articles in > kernelnewbies.com and found it very interesting. I download

Re: Debug Logs

2011-01-20 Thread Denis Kirjanov
On Thu, Jan 20, 2011 at 3:04 PM, sugnan prabhu wrote: > Hi Mulyadi, > >   Finally after making some study on the dprintk source, i found that it > can be enable by setting the config CONFIG_CPU_FREQ_DEBUG > >   http://codemonkey.org.uk/projects/cpufreq/ > > But the above link say that i ne

Re: Question: copy_process() and CLONE_NEWNS

2013-02-01 Thread Denis Kirjanov
On 2/1/13, Kevin Wilson wrote: > Hi all, > question: > > In copy_process() we have: > > static struct task_struct *copy_process(unsigned long clone_flags, > unsigned long stack_start, > struct pt_regs *regs, >

Re: location of inbuilt system call implementation

2013-03-11 Thread Denis Kirjanov
Check for the SYSCALL_DEFINE[0-6] macros. commit 1a94bc34768e463a93cb3751819709ab0ea80a01 Author: Heiko Carstens Date: Wed Jan 14 14:13:59 2009 +0100 [CVE-2009-0029] System call wrapper infrastructure From: Martin Schwidefsky By selecting HAVE_SYSCALL_WRAPPERS architectures can

Re: Getting started on Linux Kernel Development

2013-05-31 Thread Denis Kirjanov
Yeah, now you have to find a problem which people are trying to solve... Keep searching a mailing lists. and that's the only way you will be able to figure out what you can fix or improve. On 5/31/13, Daniel Hamacher wrote: > Greetings. > > My name is Daniel and I am starting out in Linux Kernel

Re: Decoding a Linux kernel oops panic due to DMAR error

2014-02-03 Thread Denis Kirjanov
On 2/3/14, Ahmed A wrote: > Hello, > > I have a server with onboard Intel 10G ports (82599). When I load the kernel > module driver for these ports, everything is fine, I can see the newly > created ethX devices using "ip addr show". However, after I assign an IP > address, and right after I issu

Re: Add Data to packet header

2014-07-16 Thread Denis Kirjanov
On 7/16/14, Robert Clove wrote: > Hi All, > > > I want to add data to the packet header. > > I used the skb_copy_expand to make the copy of the skb and data. > Now in the headroom i want to add some data. > How can i do that,please suggest . __skb_push(skb, ) to adjust the skb->data pointer > >

Re: Add Data to packet header

2014-07-16 Thread Denis Kirjanov
CCing the list On 7/16/14, Denis Kirjanov wrote: > On 7/16/14, Robert Clove wrote: > > Please don't reply privately > >> skb is the new skb >> and >> size is the size of the variable that i will push in new header >> For eg: >> struct my_head_stru

Re: hi , question function of net_rx(struct net_device *dev)

2014-07-18 Thread Denis Kirjanov
On 7/18/14, lx wrote: > hi : > the source code of net_rx(struct net_device *dev) is: > http://lxr.oss.org.cn/source/drivers/net/ethernet/cirrus/cs89x0.c#L670 > > I can't understand codes about malloc buffer. > ## > 684 /* Malloc up new buffer. *

Re: [PowerPC] - Define error in arch/arch/powerpc/boot/io.h ??

2014-07-24 Thread Denis Kirjanov
On 7/24/14, Lucas Tanure wrote: > Hi, > > Line 2 of arch/arch/powerpc/boot/io.h : > > 1 #ifndef _IO_H > 2 #define __IO_H > 3 > 4 #include "types.h" > > Should be _IO_H, not __IO_H. I'm right ? Yes > Thanks > > -- > Lucas Tanure > +55 (19) 988176559 > -- Regards, Denis _

Re: TCP/UDP

2014-08-18 Thread Denis Kirjanov
No one will ever help you with the generic questions. _That is not how the mailing list work_. You really have to dig _on your own_ for that. Don't ask useless questions, show us something concrete. Better invest your time in Stevens TCP/IP illustrated volumes(1 and 2nd one) and Unix network

Re: How to identity processor architecture

2011-01-27 Thread Denis Kirjanov
On Thu, Jan 27, 2011 at 10:27 PM, mindentropy wrote: > On Thursday 27 Jan 2011 12:15:47 pm Mulyadi Santosa wrote: >> On Thu, Jan 27, 2011 at 13:40, prabhu wrote: >> > No, because 32bit code will tell the datatype size and i think pointer >> > variable depends on architecture. >> > So 64 bit proce

Re: Gsoc participation

2011-03-14 Thread Denis Kirjanov
Also uml (user mode linux) doesn't work on many architectures. Actually I've started porting it to PowerPC... On Mon, Mar 14, 2011 at 6:46 PM, Javier Martinez Canillas wrote: >> There was written that >>> Only the ARM and x86 architectures are currently supported. >> >> Does it mean that there is

Re: thread_info address calculation

2011-09-16 Thread Denis Kirjanov
It's the same thing as you read: THREAD size is 8kb so the operation looks like the following: current_stack_pointer & ~(8191) == current_stack_pointet & 0xFE00 (last 13 bits are 0) On Fri, Sep 16, 2011 at 3:38 PM, Vijay Chauhan wrote: > Hi list, > > I would like to know how the thread_info a

Re: download the source code of some commands

2012-06-21 Thread Denis Kirjanov
How does it related to the kernel? On 6/21/12, 王哲 wrote: > Hi all: >I want to see some source code of some commands,for > example,halt,reboot,uptime,and so on. > > but i don't kown where to download? can you give me some advice? > > Thanks in advance! > -- Regards, Denis

Re: How to allocate hugepage in kernel module?

2012-08-09 Thread Denis Kirjanov
Forgot to CC kernelnewbies: Did you pass the __GFP_COMP flag to __get_free_pages? On 8/9/12, J.Hwan Kim wrote: > Hi, everyone > > How can I allocate physically contiguous huge page in kernel module ? > The routine of _get_fee_pages() fails whenever there are much free > memory in system. > > I

Re: kernel stack memory

2012-09-13 Thread Denis Kirjanov
At the moment of forking a new process do_fork() creates a new stack for the task by using alloc_thread_info_node(): struct page *page = alloc_pages_node(node, THREADINFO_GFP, THREAD_SIZE_ORDER); On 9/13/12, Rajat Sharma wrote: > "The kernel

Re: Mult core cpus - SMP

2012-09-13 Thread Denis Kirjanov
Yes, for example IBM 970MP CPU: • Dual processors on a single chip – Each processor has its own dedicated storage subsystem, including a 1 MB L2 cache per core. – Each processor has its own dedicated resets, external interrupt, thermal diode, and voltage plane (common logic is powered on). – Commo

Re: Max open file limit

2012-12-05 Thread Denis Kirjanov
#define INR_OPEN_CUR 1024 /* Initial setting for nfile rlimits */ On 12/5/12, Vijay Chauhan wrote: > Hello, > > How many files a process can open at a time? Is it configurable? > > I found following in the kernel code: > > .. > .max_fds= NR_OPEN_DEFAULT, > .. > .. > #define NR_OP

Re: Max open file limit

2012-12-05 Thread Denis Kirjanov
Look at the include/asm-generic/resource.h On 12/5/12, Denis Kirjanov wrote: > #define INR_OPEN_CUR 1024 /* Initial setting for nfile rlimits */ > > > On 12/5/12, Vijay Chauhan wrote: >> Hello, >> >> How many files a process can open at a time? Is it configu

Re: dma_alloc_coherent

2016-02-05 Thread Denis Kirjanov
On 2/5/16, Ran Shalit wrote: > Hello, > > I read the readme about dma API, but still don't understand how it > should be used > It is said that dma_alloc_coherent is responsible for allocating the > buffer. > > 1. But how to trigger the dma transaction to start ? > 2. Is there a callback when it

Re: Mapping of virtual to physical addresses

2017-03-22 Thread Denis Kirjanov
On 3/22/17, Stefan Tatschner wrote: > Hallo everybody, > > currently I am trying to understand the internal memory allocation > mechanisms of the kernel. I am particularly interested in the > translation of virtual memory addresses to physical addresses. > Additionally, how are these physical addr

Re: Decoding Stack from kernel OOPS message

2018-02-13 Thread Denis Kirjanov
On 2/13/18, Matwey V. Kornilov wrote: > Hi all, > > I have to following message in the logs. What I know is how to convert > 'Code' section to assembler or how to convert function/offset to source > code line. Now I wonder how to use stack and register dumps. Given I > have all debugging symbols f

Re: Out-of-tree module build in a dedicated build directory.

2018-03-15 Thread Denis Kirjanov
On 3/15/18, Aleksei Fedotov wrote: >>> It looks like passing O= or KBUILD_OUTPUT= doesn't work for out of tree >>> modules. > >> It doesn't? It should, what is the result when you try to do that? > > It is trying to use path specified in O= as path to the pre-build > kernel and fails to find kern

Re: CONFIG_CC_STACKPROTECTOR_STRONG

2019-07-09 Thread Denis Kirjanov
On Tuesday, July 9, 2019, Muni Sekhar wrote: > Hi All, > > > My Kernel is built with the following options: > > > > CONFIG_CC_STACKPROTECTOR=y > > CONFIG_CC_STACKPROTECTOR_STRONG=y > > > > > > We use out-of-tree kernel modules in our project and I need to measure the > performance of it by using

Re: CONFIG_CC_STACKPROTECTOR_STRONG

2019-07-09 Thread Denis Kirjanov
On Tuesday, July 9, 2019, Muni Sekhar wrote: > On Tue, Jul 9, 2019 at 10:56 PM Denis Kirjanov wrote: > > > > > > > > On Tuesday, July 9, 2019, Muni Sekhar wrote: > >> > >> Hi All, > >> > >> > >> My Kernel is built wi

Re: pr_info in driver question

2022-07-06 Thread Denis Kirjanov
On 7/6/22 09:47, A mp wrote: Hi everyone, My name is Andrew. Recently, I went through the Linux Foundations intro to kernel development course. As part of the course, it gets us to put a print statement inside of the uvcvideo driver, recompile the kernel and then load the module and check

Re: pr_info in driver question

2022-07-06 Thread Denis Kirjanov
s you the current log level Any other suggestions perhaps? Thanks, Andrew. On Wed, Jul 06, 2022 at 10:53:12AM +0300, Denis Kirjanov wrote: On 7/6/22 09:47, A mp wrote: Hi everyone, My name is Andrew. Recently, I went through the Linux Foundations intro to kernel development course. As

Re: Kernel developer proccess

2023-04-25 Thread Denis Kirjanov
On 3/22/23 02:20, Panagiotis Filippakopoulos wrote: > Hello. I would like to ask, what your advise would be to a person that > wants to get in the kernel development industry, without having a coputer > science degree. I attended some classes for computer science, but due to > some difficulties