Programming :: Create A Device Driver For User Applications?
Feb 7, 2010
I have a user Application for transferring the data from one PC to the other PC using Ethernet Port, can we create a device driver for that ?? that means it should act like a virtual device, if we write data into /dev/some file, it should go the other PC
View 3 Replies
ADVERTISEMENT
Apr 15, 2010
I'm a starter here in linux, I have written a driver code and in that, I register my character devices by passing 0 for the major number.
To set up I used to use mknod command from terminal to create node,
Is there any method to create node dynamically from driver code during initialization and delete them at cleanup time?
View 1 Replies
View Related
Apr 27, 2009
I am trying to create a xen vm on CentOs 5.3 using the following config file:
name = "vm5"
maxmem = 512
memory = 512
vcpus = 1
[Code]...
I'm assuming that it can't find a driver for a cdrom - but I am not too sure of that.
View 4 Replies
View Related
May 30, 2010
I did searched you tube but my results were not great.I have 2 books on KernelProgramming.I feel I need if some where I can get a video tutorial which can help me to understand how to develop a Linux Device driver that will be great.I had a look at Greg Kroah Hartmans video lecture of developing patches on ......I have been reading books and a lot of stuff.So I wish if I could get a video lecture that would be better
View 1 Replies
View Related
Jul 8, 2010
I need to know whether it is possible to insert or install a device driver without root permissions? or can we instal a device driver as a normal user?
View 9 Replies
View Related
Mar 12, 2011
I want to try to create my own virtual device in Linux. Something simple, for example, a /dev/fortune virtual device that returns a line from fortune() each time you read from it.
I am willing to do my own research and study, I just need to know where to start. E.g., what to read or what to google, in order to get me where I want to go the fastest. I have some C/C++ and Ruby background.
View 2 Replies
View Related
Oct 11, 2010
I know, I know..."How long is a piece of string"?
I have one of these devices:
[URL]
Of course, it's Windows only, and XP only at that. However, the data that needs transferred between the device and the computer should be fairly basic, unless it offloads a lot of processing to the computer. I'm not a programmer, nor do I play one on TV, but I have written some fairly complicated microcontroller programs and some basic Java GUIs. Besides writing the actual code, how hard is it to do whatever needs done to make a Linux device driver, apart from the code to make the device work?
View 2 Replies
View Related
Nov 30, 2010
Is there an easy example of a block device driver I could follow as a guide to write my own module?
View 5 Replies
View Related
Jan 14, 2011
How to do device driver programming in Ubuntu 10.04?
View 2 Replies
View Related
Mar 31, 2010
I've a problem with character device mounting. I've a character device module code. Here is the code
Code: /* chardev.c: Creates a read-only char device that says how many times
* you've read from the dev file
*/
#if defined(CONFIG_MODVERSIONS) && ! defined(MODVERSIONS)
#include <linux/modversions.h>
#define MODVERSIONS
[Code]...
View 1 Replies
View Related
Sep 23, 2010
I wrote a small hello world type of character device driver. When I type echo -n "abcdef" > /dev/bond and do a cat /dev/bond then only last "f" of above input abcdef is displayed rest nothing is displayed. I asked this question earlier and some people suggested me some modifications I have done and experimented all that but I am unable to catch the error.
Here is the code
Code:
/* Necessary includes for device drivers */
#include <linux/init.h>
//#include <linux/config.h>
#include <linux/module.h>
[Code].....
View 3 Replies
View Related
Apr 3, 2010
i woul like to know if i could get help in writing a charater device driver for communication between two pc's in linux using RS-232 serial port.
View 5 Replies
View Related
May 20, 2010
How can I create virtual driver for parport?My notebook doesn't have LPT and I would like to write virtual driver for LPT (USB to LPT).I wrote driver for USB to microcontroller.I don't know how can I register "static const struct parport_operations" or function like this?static void write_parport(/*data*/){/* send data to USB */
View 3 Replies
View Related
Aug 17, 2010
Can we use CRON to create new user accounts?
View 4 Replies
View Related
Oct 14, 2009
is there a way to save/create a file with fopen so the file is in the user home directory.Normally I'd do fopen("/home/me/myfile.... but me might change from one user to another. So can I so some sort of switch so it saves to whoever is using.
View 5 Replies
View Related
Jun 30, 2010
create a user for php/MySQL under ms win environment?
View 1 Replies
View Related
Sep 5, 2010
How do I create a user account in a shell script? I know this may sound n00bish to you, but I know it's more than just mkdir-ing the home directory and subdirectories.
View 7 Replies
View Related
Apr 27, 2011
i am trying learn to program linux kernel modules and smoothly transition in device driver programming. I have a year and a half worth of programming in C and have been using linux for years!! But my question is how do i compile a module? I got as far as coding it but am stuck as of now.
View 2 Replies
View Related
Jun 30, 2011
I am writing a ping kind of program for my own application. This application needs to run with non root user privileges. This needs me to create a raw socket. But the ping connection is failing because of creating raw socket with non root user.How can I run the application successfully with non root user privileges using raw socket creation?
View 4 Replies
View Related
Aug 9, 2010
I'm trying to write a script that will prompt the user for a username/password, then create that user/password in the right groups on all my machines. I know this is kind of a long way around to avoid a NIS server, but I like making my life more difficult.
This is what I have so far:
Code:
the script has 2 problems: The "if" functions return an error and do not compare the strings successfully. whatever password is entered does get applied properly and the user is unable to login
View 7 Replies
View Related
Feb 15, 2010
I need to be able to store users logged at chat server. The chat program stores the login information in a text file (no db). I need a modification so the user info is read from the flat file and stores into a table in Joomla db. I don't have access to source for making the Java Chat Server store the data directly to joomla db is not possible.Any pointer will be appreciated.Below if the code that read s the information from Java Chat Server.
Code:
function chat_getChattersFromLocalServer()
{
[code]...
View 3 Replies
View Related
Jan 30, 2011
I am working with ubuntu (linux) and have to create a graphical user interface. The GUI is a 2-D plot that have to plot a point. The point ( x and y co-ordinates) are not hardcoded, and are coming from another file (another piece of code written in c / python). I was thinking to use Glade with c/python to create this. But, I am not sure how to start with this.
View 4 Replies
View Related
Sep 17, 2010
I am looking for a way to issue ioctls to a usb driver from user space. Upon googling, I found that usbfs provides a way to do that, anyhow I can't find sample code to try that out.
Note:
I have written a sample usb driver on the lines of 'Linux device drivers' book. Now I need to try ioctls with usb drivers.
View 2 Replies
View Related
Apr 6, 2011
basically i have to create a simple program with will continually read input from the user until they enter a blank linei know how to read in certain input but not sure how to get it continually in a loop
View 2 Replies
View Related
Sep 19, 2009
I am currently using fedora 11 kernel 2.6.29 version, i wanted to write device driver for usb to detect my own device. My project is radio with computer. My fm radio get connected to usb port so i need to write h/w interfacing program.
View 1 Replies
View Related
Nov 10, 2010
The error "USB device 6 (vend/prod 0x603/0xf2) is not claimed by any active driver." is in dmesg every time I connect my Logitech keyboard to my system. I also tried (all with the same error):
- Memory stick
- DVD-burner
- Compaq mouse
View 3 Replies
View Related
Jul 28, 2010
I have installed live cd on usb pendrive. Everything works great. How can I find out which device driver it is using? Where are the device driver files stored? How do you specify the device driver when mounting a device?
View 3 Replies
View Related
Feb 20, 2010
I have Centos5.4 loaded on a late 2008 MACBOOK Pro and would like to get wireless working. I've attempted to download the broadcom driver and create a driver module with no luck.
Using these instructions....
[url]
When I make the WLAN driver, I get this:
View 2 Replies
View Related
Jan 18, 2010
I wanted to create an user but don't allow it to see the other user's home folder so I made chmod 0750 /home/folder and it worked fine so I went ahead and decided to completely forbid access to the root folder and I had the "great" idea to make chmod 0750 /, and now I'm having problems with wine and other applications, in example I used to have a folder in this address 209.239.114.51/mmgr but now it's giving me errors and if I try to run some applications I got error "There was an error creating the child process for this terminal"
View 9 Replies
View Related
Feb 2, 2010
I want to add 50 new users, not on the server yet I want to add them all to group Accounting - with 1 option, not user by user I want to setup a default password for them all, and have it say something like 'You must now change password or no access will be permitted' Any other options I also want to do once, not for each user?
View 3 Replies
View Related