Sponsored Content
Top Forums UNIX for Advanced & Expert Users PATH included in .o file of device driver Post 302497136 by achenle on Wednesday 16th of February 2011 12:39:14 PM
Old 02-16-2011
What's in the header file? There's probably a constant defined in the file that then shows up in the compiled object file.

Even something like __FILE__ will cause that.
 

4 More Discussions You Might Find Interesting

1. SCO

tape drive driver device file

i have a sco-unix box. I want to access tape driver (sdt-700) on scsi. but i dont know how? where is this device file for tape driver is located? how do i access this tape? pls help this fool. (1 Reply)
Discussion started by: mchitrakar
1 Replies

2. Solaris

SUNWglmr -- rasctrl environment monitoring driver for i2c or SCSI device driver ?

I've been researching minimizeing Solaris 8 and found that on the web page http://www.sun.com/bigadmin/content/packagelist/s8u7PkgList/p2.html the package SUNWglmr is listed as "rasctrl environment monitoring driver for i2c, (Root) (32-bit)" while in the document "Solaris 8 minimize-updt1.pdf"... (1 Reply)
Discussion started by: roygoodwin
1 Replies

3. Programming

regarding device driver

Hi All, I have a device driver that uses UARTserial port to write/read to-from a device. That device driver is working fine on FC3 machine( kernel version 2.6.12)... Now I am switching to FC9 (kernel version 2.6.25.11-97).I have changed the interrupt flag SA_INTERRUPT to IRQF_DISABLED... (0 Replies)
Discussion started by: rajuprade
0 Replies

4. UNIX for Advanced & Expert Users

Command to see the logical volume path, device mapper path and its corresponding dm device path

Currently I am using this laborious command lvdisplay | awk '/LV Path/ {p=$3} /LV Name/ {n=$3} /VG Name/ {v=$3} /Block device/ {d=$3; sub(".*:", "/dev/dm-", d); printf "%s\t%s\t%s\n", p, "/dev/mapper/"v"-"n, d}' Would like to know if there is any shorter method to get this mapping of... (2 Replies)
Discussion started by: royalibrahim
2 Replies
INOTIFY_INIT(3) 							 1							   INOTIFY_INIT(3)

inotify_init - Initialize an inotify instance

SYNOPSIS
resource inotify_init (void ) DESCRIPTION
Initialize an inotify instance for use with inotify_add_watch(3) RETURN VALUES
A stream resource or FALSE on error. EXAMPLES
Example #1 Example usage of inotify <?php // Open an inotify instance $fd = inotify_init(); // Watch __FILE__ for metadata changes (e.g. mtime) $watch_descriptor = inotify_add_watch($fd, __FILE__, IN_ATTRIB); // generate an event touch(__FILE__); // Read events $events = inotify_read($fd); print_r($events); // The following methods allows to use inotify functions without blocking on inotify_read(): // - Using stream_select() on $fd: $read = array($fd); $write = null; $except = null; stream_select($read,$write,$except,0); // - Using stream_set_blocking() on $fd stream_set_blocking($fd, 0); inotify_read($fd); // Does no block, and return false if no events are pending // - Using inotify_queue_len() to check if event queue is not empty $queue_len = inotify_queue_len($fd); // If > 0, inotify_read() will not block // Stop watching __FILE__ for metadata changes inotify_rm_watch($fd, $watch_descriptor); // Close the inotify instance // This may have closed all watches if this was not already done fclose($fd); ?> The above example will output something similar to: array( array( 'wd' => 1, // Equals $watch_descriptor 'mask' => 4, // IN_ATTRIB bit is set 'cookie' => 0, // unique id to connect related events (e.g. // IN_MOVE_FROM and IN_MOVE_TO events) 'name' => '', // the name of a file (e.g. if we monitored changes // in a directory) ), ); SEE ALSO
inotify_add_watch(3), inotify_rm_watch(3), inotify_queue_len(3), inotify_read(3), fclose(3). PHP Documentation Group INOTIFY_INIT(3)
All times are GMT -4. The time now is 09:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy