Today I was writing a shell script when I came across this issue. In one part of the shell script I needed to count the number of lines I read from an input file, this is where I used 'let'.
Script to indent your C and kernel files
Steps to create a script/command for indentation:
1. Create a file named "indent_cmd" without any extension. (Do not name it "indent" as there is already a command of that name in linux, which we will use too).
# vi indent_cmd
Installing my custom kernel on my Ubuntu Desktop
Today I had to customize my Ubuntu Precise kernel. I was required to change the number of maximum pages which can be allocated contiguously so that I could dma_alloc_coherent more memory.
How to change your kernel space memory in Ubuntu and embedded
While writing a driver for Ubuntu or porting linux to a new embedded board one may need to either limit or increase the RAM (Random Access Memory) used by kernel. This can be achieved by tweaking the kernel command line arguments sent from the second stage bootloader to the kernel.
How to make my C code have multi-level logs
How to make my C code have multi-level logs
Sarah, an embedded engineer in the software IP development team, writes tons of C code daily. All the company employees including her colleagues and boss are the users of her code. She has to make sure that her code is flexible for all the users. For example, her co-workers need all the details at all the levels of the program execution while her boss is only interested in the results. For this Sarah uses multi-level logs in her code.
What are multi-level logs?
Categorizing the logs thus forming a level for each and printing the logs on screen only when that level is required
Subscribe to:
Posts (Atom)